Sha256: 0d8ca81dd8429ba2ca78e938e0564889c533bbebe241e86b03f9703f58b65db5

Contents?: true

Size: 483 Bytes

Versions: 51

Compression:

Stored size: 483 Bytes

Contents

module Kurchatov

  module Ohai
    def self.data
      @ohai ||= ::Ohai::System.new
      @mutex ||= Mutex.new
      @mutex.synchronize do
        Log.info('Load ohai plugins')
        @ohai.all_plugins
      end
      @ohai.data
    end
  end

  module Mixin
    module Ohai

      class << self;
        attr_accessor :ohai_instance;
      end

      def ohai
        @ohai_instance ||= Kurchatov::Mixin::Ohai.ohai_instance ||= Kurchatov::Ohai.data
      end

    end
  end

end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
kurchatov-0.4.7 lib/kurchatov/mixin/ohai.rb
kurchatov-0.4.6 lib/kurchatov/mixin/ohai.rb
kurchatov-0.4.5 lib/kurchatov/mixin/ohai.rb
kurchatov-0.4.4 lib/kurchatov/mixin/ohai.rb
kurchatov-0.4.3 lib/kurchatov/mixin/ohai.rb
kurchatov-0.4.2 lib/kurchatov/mixin/ohai.rb
kurchatov-0.4.1 lib/kurchatov/mixin/ohai.rb
kurchatov-0.3.8 lib/kurchatov/mixin/ohai.rb
kurchatov-0.3.7 lib/kurchatov/mixin/ohai.rb
kurchatov-0.3.6 lib/kurchatov/mixin/ohai.rb
kurchatov-0.3.5 lib/kurchatov/mixin/ohai.rb
kurchatov-0.3.4 lib/kurchatov/mixin/ohai.rb
kurchatov-0.3.3 lib/kurchatov/mixin/ohai.rb
kurchatov-0.3.2 lib/kurchatov/mixin/ohai.rb
kurchatov-0.3.1 lib/kurchatov/mixin/ohai.rb
kurchatov-0.3.0 lib/kurchatov/mixin/ohai.rb
kurchatov-0.2.9 lib/kurchatov/mixin/ohai.rb
kurchatov-0.2.8 lib/kurchatov/mixin/ohai.rb
kurchatov-0.2.7 lib/kurchatov/mixin/ohai.rb
kurchatov-0.2.6 lib/kurchatov/mixin/ohai.rb