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
34
35
36
|
# File 'lib/eac_ruby_base0/runner.rb', line 34
def application_version
runner_context.call(:application).version.to_s
end
|
#run ⇒ Object
24
25
26
27
28
29
30
31
32
|
# File 'lib/eac_ruby_base0/runner.rb', line 24
def run
::EacRubyUtils::Speaker.context.on(build_speaker) do
if parsed.version?
show_version
else
run_with_subcommand
end
end
end
|
#show_version ⇒ Object
38
39
40
|
# File 'lib/eac_ruby_base0/runner.rb', line 38
def show_version
out("#{application_version}\n")
end
|