Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (9 sloc) 308 Bytes
namespace :iron_worker do
desc "Upload all workers"
task :upload => :environment do
Dir.glob('workers/*.worker').each do |file|
code_from_workerfile = IronWorkerNG::Code::Base.new(:workerfile => file)
Rails.application.config.iw_client.codes.create(code_from_workerfile)
end
end
end