Sha256: 11ecbbde0c7dfa4fe0ff191ffda80f46d1b74ddea1fbbec9cec7ea6dee94223c

Contents?: true

Size: 324 Bytes

Versions: 11

Compression:

Stored size: 324 Bytes

Contents

module Graphiterb
  module Utils

    # A module which provides information about the node this code is
    # executing on.
    #
    # Maybe it's worth bringing Ohai into this.  I'm not sure.
    module SystemInfo

      def hostname
        @hostname ||= `hostname`.chomp.gsub(".","_")
      end
      
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
graphiterb-0.2.11 lib/graphiterb/utils/system.rb
graphiterb-0.2.10 lib/graphiterb/utils/system.rb
graphiterb-0.2.9 lib/graphiterb/utils/system.rb
graphiterb-0.2.7 lib/graphiterb/utils/system.rb
graphiterb-0.2.6 lib/graphiterb/utils/system.rb
graphiterb-0.2.5 lib/graphiterb/utils/system.rb
graphiterb-0.2.4 lib/graphiterb/utils/system.rb
graphiterb-0.2.3 lib/graphiterb/utils/system.rb
graphiterb-0.2.2 lib/graphiterb/utils/system.rb
graphiterb-0.2.1 lib/graphiterb/utils/system.rb
graphiterb-0.2.0 lib/graphiterb/utils/system.rb