Class: Wakame::Cli::Subcommand::DeployApplication

Inherits:
Object
  • Object
show all
Includes:
Wakame::Cli::Subcommand
Defined in:
lib/wakame/runner/administrator_command.rb

Instance Method Summary collapse

Methods included from Wakame::Cli::Subcommand

#create_parser, included, #print_result

Instance Method Details

#parse(args) ⇒ Object



804
805
806
807
808
809
810
811
812
# File 'lib/wakame/runner/administrator_command.rb', line 804

def parse(args)
  @params = {}
  cmd = create_parser(args) { |opts|
    opts.banner = "Usage: deploy_application [options] \"Application Name\""
    opts.separator ""
  }
  @params[:app_name] = args.shift || abort("[ERROR]: Application name was not given")
  @params
end

#run(requester) ⇒ Object



814
815
816
# File 'lib/wakame/runner/administrator_command.rb', line 814

def run(requester)
  requester.request(@params)
end