Module: EacRubyBase0::Runner
- Defined in:
- lib/eac_ruby_base0/runner.rb,
lib/eac_ruby_base0/runner/test_all.rb
Defined Under Namespace
Classes: FailIfRequestInput, TestAll
Instance Method Summary
collapse
Instance Method Details
#application_version ⇒ Object
36
37
38
|
# File 'lib/eac_ruby_base0/runner.rb', line 36
def application_version
runner_context.call(:application).version.to_s
end
|
#run ⇒ Object
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/eac_ruby_base0/runner.rb', line 24
def run
on_speaker_node do |node|
node.stderr = ::StringIO.new if parsed.quiet?
node.stdin = FailIfRequestInput.new if parsed.no_input?
if parsed.version?
show_version
else
run_with_subcommand
end
end
end
|
#show_version ⇒ Object
40
41
42
|
# File 'lib/eac_ruby_base0/runner.rb', line 40
def show_version
out("#{application_version}\n")
end
|