Method: A2::Subcommand::Infra::ListMissingNodesCount#initialize

Defined in:
lib/a2/subcommands/infra.rb

#initializeListMissingNodesCount

Returns a new instance of ListMissingNodesCount.



17
18
19
20
21
22
23
# File 'lib/a2/subcommands/infra.rb', line 17

def initialize
  super('list-missing-nodes', takes_commands: false)
  @opt = {}
  options.on('-d', '--durations DURATIONS', "A comma-separated list of durations. A valid duration is any number zero or greater with one of these characters 'h', 'd', 'w', or 'M'. 'h' is hours 'd' is days 'w' is weeks 'M' is months Will contain one or many.") do |durations|
    @opt[:durations] = durations.split(',').join('&durations=').prepend('?durations=')
  end
end