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
|
#on_context ⇒ Object
40
41
42
43
44
45
46
47
48
|
# File 'lib/eac_ruby_base0/runner.rb', line 40
def on_context
::EacRubyUtils::Speaker.context.on(build_speaker) do
::EacConfig::Node.context.on(runner_context.call(:application).build_config) do
::EacFs::Cache.context.on(application.self_fs_cache) do
yield
end
end
end
end
|
#run ⇒ Object
26
27
28
29
30
31
32
33
34
|
# File 'lib/eac_ruby_base0/runner.rb', line 26
def run
on_context do
if parsed.version?
show_version
else
run_with_subcommand
end
end
end
|
#show_version ⇒ Object
50
51
52
|
# File 'lib/eac_ruby_base0/runner.rb', line 50
def show_version
out("#{application_version}\n")
end
|