Class: Seeker::JunosCLI

Inherits:
CLI
  • Object
show all
Defined in:
lib/seeker/junos/cli.rb

Constant Summary

Constants inherited from CLI

CLI::NETRC_MACHINE

Instance Attribute Summary

Attributes inherited from CLI

#result

Instance Method Summary collapse

Instance Method Details

#opts_parseObject



5
6
7
8
9
10
11
# File 'lib/seeker/junos/cli.rb', line 5

def opts_parse
  opts = Slop.parse(:help=>true) do
    banner 'Usage: junos-seeker [options] hostname'
    on 'l=', 'level', 'Level to start from, e.g. chassis, system, routing-options'
    on 'd',  'debug', 'Debug (optionally with level)', :optional_argument=>true
  end
end

#seekObject



13
14
15
# File 'lib/seeker/junos/cli.rb', line 13

def seek
  Junos.new(@host, @user, @password, @opts).seek
end