Sha256: 76c557b1b78181b27f532e5de6665cb0991ccb0f0c198493db91683ec18f0cce

Contents?: true

Size: 466 Bytes

Versions: 5

Compression:

Stored size: 466 Bytes

Contents

module Veewee
  module Provider
    module Vmfusion
      module BoxCommand

        # Get the IP address of the box
        def ip_address
          return raw.ip_address
        end

        # http://www.thirdbit.net/articles/2008/03/04/dhcp-on-vmware-fusion/
        def host_ip_as_seen_by_guest
          File.open("/Library/Application Support/VMware Fusion/vmnet8/nat.conf").readlines.grep(/ip = /).first.split(" ")[2]
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
veewee-0.3.0.alpha9 lib/veewee/provider/vmfusion/box/helper/ip.rb
veewee-0.3.0.alpha8 lib/veewee/provider/vmfusion/box/helper/ip.rb
veewee-0.3.0.alpha7 lib/veewee/provider/vmfusion/box/helper/ip.rb
veewee-0.3.0.alpha6 lib/veewee/provider/vmfusion/box/helper/ip.rb
veewee-0.3.0.alpha5 lib/veewee/provider/vmfusion/box/helper/ip.rb