Sha256: 231dde7e4f4f6511689c8ebf111b76414d4aaefb86806cd22c26a95bc9023512

Contents?: true

Size: 258 Bytes

Versions: 14

Compression:

Stored size: 258 Bytes

Contents

module Kaya
  module Support
    module IfConfig
      def self.ip
        begin
          if_config_output = `ifconfig`
          if_config_output.scan(/:(\d+\.\d+\.\d+\.\d+)/).first.first
        rescue
          nil
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kaya-0.0.14 lib/kaya/support/if_config.rb
kaya-0.0.13 lib/kaya/support/if_config.rb
kaya-0.0.12 lib/kaya/support/if_config.rb
kaya-0.0.11 lib/kaya/support/if_config.rb
kaya-0.0.10 lib/kaya/support/if_config.rb
kaya-0.0.9 lib/kaya/support/if_config.rb
kaya-0.0.8 lib/kaya/support/if_config.rb
kaya-0.0.7 lib/kaya/support/if_config.rb
kaya-0.0.6 lib/kaya/support/if_config.rb
kaya-0.0.5 lib/kaya/support/if_config.rb
kaya-0.0.4 lib/kaya/support/if_config.rb
kaya-0.0.3 lib/kaya/support/if_config.rb
kaya-0.0.2 lib/kaya/support/if_config.rb
kaya-0.0.1 lib/kaya/support/if_config.rb