Class: MRuby::Command::CrossTestRunner

Inherits:
MRuby::Command show all
Defined in:
ext/enterprise_script_service/mruby/lib/mruby/build/command.rb

Constant Summary

Constants inherited from MRuby::Command

NotFoundCommands

Instance Attribute Summary collapse

Attributes inherited from MRuby::Command

#build, #command

Instance Method Summary collapse

Methods inherited from MRuby::Command

#clone, #shellquote

Constructor Details

#initialize(build) ⇒ CrossTestRunner

Returns a new instance of CrossTestRunner.



356
357
358
359
360
361
362
# File 'ext/enterprise_script_service/mruby/lib/mruby/build/command.rb', line 356

def initialize(build)
  super
  @command = nil
  @runner_options = '%{flags} %{infile}'
  @verbose_flag = ''
  @flags = []
end

Instance Attribute Details

#flagsObject

Returns the value of attribute flags.



354
355
356
# File 'ext/enterprise_script_service/mruby/lib/mruby/build/command.rb', line 354

def flags
  @flags
end

#runner_optionsObject

Returns the value of attribute runner_options.



352
353
354
# File 'ext/enterprise_script_service/mruby/lib/mruby/build/command.rb', line 352

def runner_options
  @runner_options
end

#verbose_flagObject

Returns the value of attribute verbose_flag.



353
354
355
# File 'ext/enterprise_script_service/mruby/lib/mruby/build/command.rb', line 353

def verbose_flag
  @verbose_flag
end

Instance Method Details

#run(testbinfile) ⇒ Object



364
365
366
367
# File 'ext/enterprise_script_service/mruby/lib/mruby/build/command.rb', line 364

def run(testbinfile)
  puts "TEST for " + @build.name
  _run runner_options, { :flags => [flags, verbose_flag].flatten.join(' '), :infile => testbinfile }
end