Sha256: 40b740ed40d049acdb5fab53ff4b6934e81f18f1528416cf80510828743d188f

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

module JunosConfig
  module Security
    class Zone
      attr_accessor :raw,
                    :config,
                    :name,
                    :address_book
      
      def initialize(config, raw)
        @config = config
        @raw    = raw
        @name   = raw.match(/^\ {8}security\-zone\ (\S+) \{$/)[1]      
        @address_book = raw.scan(/^(\ {12}address\-book\ \{$.*?^\ {12}\})$/m).collect do |x|
          Security::AddressBook.new self, x[0]
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
junos-config-0.3.0 lib/junos-config/security/zone.rb