Class: Avm::Tools::Runner::EacRailsBase0::ApacheHost

Inherits:
EacRubyUtils::Console::DocoptRunner
  • Object
show all
Includes:
EacRubyUtils::Console::Speaker
Defined in:
lib/avm/tools/runner/eac_rails_base0/apache_host.rb

Constant Summary collapse

DOC =
<<~DOCOPT
  Deploy for EacRailsBase0 instance.

  Usage:
    __PROGRAM__ [options]
    __PROGRAM__ -h | --help

  Options:
    -h --help                       Show this screen.
    -r --reference=<git-reference>  Git reference to deploy.
DOCOPT

Instance Method Summary collapse

Instance Method Details

#runObject



26
27
28
29
30
31
32
33
34
35
# File 'lib/avm/tools/runner/eac_rails_base0/apache_host.rb', line 26

def run
  result = ::Avm::Stereotypes::EacRailsBase0::ApacheHost.new(
    context(:instance)
  ).run
  if result.error?
    fatal_error result.to_s
  else
    infov 'Result', result.label
  end
end