Class: Wakame::Cli::Subcommand::ReloadService

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



686
687
688
689
690
691
692
693
694
695
# File 'lib/wakame/runner/administrator_command.rb', line 686

def parse(args)
  @params = {}
  cmd = create_parser(args) {|opts|
    opts.banner = "Usage: ReloadService [options] \"Service ID\""
    opts.separator ""
    opts.separator "options:"
  }
  service_id = args.shift || abort("[ERROR]: Service ID was not given")
  @params[:service_id] = service_id
end

#run(requester) ⇒ Object



697
698
699
# File 'lib/wakame/runner/administrator_command.rb', line 697

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