Skip to content

Commit 5c533a5

Browse files
committed
rename command to launcher
1 parent 64672da commit 5c533a5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/jruby_art/command.rb renamed to lib/jruby_art/launcher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
module Processing
55
# The command class check for configuration and options, before creating and
66
# 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
88
attr_reader :runner, :args, :filename
99
def initialize(runner:, args:, filename:)
1010
@runner = runner

lib/jruby_art/runner.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
require_relative '../jruby_art/config'
77
require_relative '../jruby_art/version'
88
require_relative '../jruby_art/java_opts'
9-
require_relative '../jruby_art/command'
9+
require_relative '../jruby_art/launcher'
1010
# processing wrapper module
1111
module Processing
1212
# Utility class to handle the different commands that the 'k9' command
@@ -156,17 +156,17 @@ def show_version
156156

157157
private
158158

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.
160160
# 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?)
162162
# and for any options in java_args.txt or config
163163
def spin_up(starter_script, filename, argc)
164-
build = Command.new(
164+
launch = Launcher.new(
165165
runner: "#{K9_ROOT}/lib/jruby_art/runners/#{starter_script}",
166166
args: argc,
167167
filename: filename
168168
)
169-
build.cmd(SKETCH_ROOT)
169+
launch.cmd(SKETCH_ROOT)
170170
end
171171

172172
# NB: We really do mean to use 'and' not '&&' for flow control purposes

0 commit comments

Comments
 (0)