Sha256: dacfbfacd04191508da2c31080560edd45bd9a2aac3e5ef96d91cea9e17ff327

Contents?: true

Size: 609 Bytes

Versions: 7

Compression:

Stored size: 609 Bytes

Contents

module Rubyipmi::Freeipmi

  class Bmc

    attr_accessor :options
    attr_accessor :config

    def initialize(opts = ObservableHash.new)
      @options = opts
      @bmcinfo = {}
    end

    def info
      if @bmcinfo.length > 0
        @bmcinfo
      else
        information.retrieve
      end
    end

    def guid
       information.guid
    end

    def config
      @config ||= Rubyipmi::Freeipmi::BmcConfig.new(options)
    end

    def lan
      @lan ||= Rubyipmi::Freeipmi::Lan.new(options)
    end

    def information
      @info ||= Rubyipmi::Freeipmi::BmcInfo.new(@options)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubyipmi-0.5.1 lib/rubyipmi/freeipmi/commands/bmc.rb
rubyipmi-0.5.0 lib/rubyipmi/freeipmi/commands/bmc.rb
rubyipmi-0.4.0 lib/rubyipmi/freeipmi/commands/bmc.rb
rubyipmi-0.3.3 lib/rubyipmi/freeipmi/commands/bmc.rb
rubyipmi-0.3.2 lib/rubyipmi/freeipmi/commands/bmc.rb
rubyipmi-0.3.1 lib/rubyipmi/freeipmi/commands/bmc.rb
rubyipmi-0.3.0 lib/rubyipmi/freeipmi/commands/bmc.rb