File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
module Processing
5
5
# The command class check for configuration and options, before creating and
6
6
# executing the jruby (or java) command to run the sketch
7
- class Command # better name might be Launcher used already by Soby
7
+ class Launcher
8
8
attr_reader :runner , :args , :filename
9
9
def initialize ( runner :, args :, filename :)
10
10
@runner = runner
Original file line number Diff line number Diff line change 6
6
require_relative '../jruby_art/config'
7
7
require_relative '../jruby_art/version'
8
8
require_relative '../jruby_art/java_opts'
9
- require_relative '../jruby_art/command '
9
+ require_relative '../jruby_art/launcher '
10
10
# processing wrapper module
11
11
module Processing
12
12
# Utility class to handle the different commands that the 'k9' command
@@ -156,17 +156,17 @@ def show_version
156
156
157
157
private
158
158
159
- # We now build and execute the command arguments in the Command class.
159
+ # We now build and execute the command arguments in the Launcher class.
160
160
# Here we only need to supply the starter script, filename and args if any,
161
- # the Command class checks config (is executable java or jruby?)
161
+ # the Launcher class checks config (is executable java or jruby?)
162
162
# and for any options in java_args.txt or config
163
163
def spin_up ( starter_script , filename , argc )
164
- build = Command . new (
164
+ launch = Launcher . new (
165
165
runner : "#{ K9_ROOT } /lib/jruby_art/runners/#{ starter_script } " ,
166
166
args : argc ,
167
167
filename : filename
168
168
)
169
- build . cmd ( SKETCH_ROOT )
169
+ launch . cmd ( SKETCH_ROOT )
170
170
end
171
171
172
172
# NB: We really do mean to use 'and' not '&&' for flow control purposes
You can’t perform that action at this time.
0 commit comments