Class: LitmusPaper::CLI::Admin::List

Inherits:
Command
  • Object
show all
Defined in:
lib/litmus_paper/cli/admin/list.rb

Class Method Summary collapse

Methods inherited from Command

_default_options, _extend_default_parser

Class Method Details

.build_request(options, args) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/litmus_paper/cli/admin/list.rb', line 9

def self.build_request(options, args)
  options.merge! _default_options
  opt_parser = _extend_default_parser(options) do |opts|
    opts.banner = "Usage: litmusctl list [options]"
  end
  opt_parser.parse! args

  Net::HTTP::Get.new("/")
end

.descriptionObject



5
6
7
# File 'lib/litmus_paper/cli/admin/list.rb', line 5

def self.description
  "List services"
end