Class: Wakame::Cli::Subcommand::MigrateService
- Inherits:
-
Object
- Object
- Wakame::Cli::Subcommand::MigrateService
show all
- Includes:
- Wakame::Cli::Subcommand
- Defined in:
- lib/wakame/runner/administrator_command.rb
Instance Method Summary
collapse
#create_parser, included, #print_result
Instance Method Details
#parse(args) ⇒ Object
626
627
628
629
630
631
632
633
634
635
636
|
# File 'lib/wakame/runner/administrator_command.rb', line 626
def parse(args)
@params = {}
cmd = create_parser(args){|opts|
opts.banner = "Usage: migrate_service [options] \"Service ID\""
opts.separator ""
opts.separator "options:"
opts.on("-a Agent ID", "--agent Agent ID"){ |i| @params[:agent_id] = i}
}
service_id = args.shift || abort("[ERROR]: Service ID was not given")
@params[:service_id] = service_id
end
|
#run(requester) ⇒ Object
638
639
640
|
# File 'lib/wakame/runner/administrator_command.rb', line 638
def run(requester)
requester.request(@params)
end
|