Sha256: 9f2f4718106dde63d934dfeadd311fb20da58d309a10d21af515264d49c49dfb

Contents?: true

Size: 365 Bytes

Versions: 1

Compression:

Stored size: 365 Bytes

Contents

require 'net/netconf/jnpr'
require 'sloe/common'

module Sloe
  class Junos < Sloe::Common

    def initialize(args, &block)
        super( args, &block )
    end

    def cli(cmd_str, attrs = { :format => 'text' })
      attrs[:format] ||= 'text'
      reply = self.rpc.command(cmd_str, attrs)
      reply.respond_to?(:text) ? reply.text : reply
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sloe-0.5.4 lib/sloe/junos.rb