Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
View
5 lib/iron_worker_ng/code/base.rb
@@ -60,6 +60,11 @@ def bundle(zip)
end
def create_zip
+ unless @worker
+ IronWorkerNG::Logger.error 'No worker specified'
+ raise 'No worker specified'
+ end
+
fixate
init_code = ''
View
9 lib/iron_worker_ng/code/java.rb
@@ -8,13 +8,6 @@ class Java < IronWorkerNG::Code::Base
include IronWorkerNG::Feature::Java::MergeWorker::InstanceMethods
def create_runner(zip, init_code)
- IronWorkerNG::Logger.info 'Creating java runner'
-
- unless @worker
- IronWorkerNG::Logger.error 'No worker specified'
- raise 'No worker specified'
- end
-
classpath_array = []
@features.each do |f|
@@ -51,7 +44,7 @@ def runtime
end
def runner
- 'runner.rb'
+ '__runner__.rb'
end
end
end
View
9 lib/iron_worker_ng/code/node.rb
@@ -6,13 +6,6 @@ class Node < IronWorkerNG::Code::Base
include IronWorkerNG::Feature::Node::MergeWorker::InstanceMethods
def create_runner(zip, init_code)
- IronWorkerNG::Logger.info 'Creating node 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}
@@ -37,7 +30,7 @@ def runtime
end
def runner
- 'runner.rb'
+ '__runner__.rb'
end
end
end
View
9 lib/iron_worker_ng/code/ruby.rb
@@ -10,13 +10,6 @@ class Ruby < IronWorkerNG::Code::Base
include IronWorkerNG::Feature::Ruby::MergeWorker::InstanceMethods
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}
@@ -112,7 +105,7 @@ def runtime
end
def runner
- 'runner.rb'
+ '__runner__.rb'
end
end
end

No commit comments for this range

Something went wrong with that request. Please try again.