9 lines
287 B
Ruby
9 lines
287 B
Ruby
namespace :import do
|
|
desc 'import to cloud with account_id inbox_id'
|
|
task :build, [:account_id, :inbox_id, :type] => :environment do |_t, args|
|
|
MigrateToCloud::ImportToCloud.new(
|
|
account_id: args.account_id,
|
|
inbox_id: args.inbox_id
|
|
).perform(args.type)
|
|
end
|
|
end
|