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



726
727
728
729
730
731
732
733
734
# File 'lib/wakame/runner/administrator_command.rb', line 726

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



736
737
738
# File 'lib/wakame/runner/administrator_command.rb', line 736

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