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