Skip to content

Commit

Permalink
Merge pull request #17 from romand-ironio/raise-no-worker
Browse files Browse the repository at this point in the history
complain if no worker in ruby code bundle
  • Loading branch information
romand-ironio committed Apr 3, 2012
2 parents 99327ae + a92e918 commit e08ebf7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/iron_worker_ng/code/ruby.rb
Expand Up @@ -12,6 +12,11 @@ class Ruby < IronWorkerNG::Code::Base
def create_runner(zip, init_code)
IronWorkerNG::Logger.info 'Creating ruby runner'

unless @worker
IronWorkerNG::Logger.error 'No worker specified'
raise 'No worker specified'
end

zip.get_output_stream('runner.rb') do |runner|
runner.write <<RUNNER
# iron_worker_ng-#{IronWorkerNG.version}
Expand Down

0 comments on commit e08ebf7

Please sign in to comment.