Class: Wakame::Cli::Subcommand::ImportClusterConfig

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



629
630
631
632
633
634
635
636
637
# File 'lib/wakame/runner/administrator_command.rb', line 629

def parse(args)
  @params = {}
  cmd = create_parser(args) { |opts|
    opts.banner = "Usage: import_cluster_config"
    opts.separator ""
    opts.separator "options:"
  }
  @params
end

#run(requester) ⇒ Object



639
640
641
# File 'lib/wakame/runner/administrator_command.rb', line 639

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