Class: VagrantIE::Provisioner

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-ie/provisioner.rb

Instance Method Summary collapse

Instance Method Details

#configure(_) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/vagrant-ie/provisioner.rb', line 6

def configure(_)
  @config.public_ip_addr ||= Socket.ip_address_list
    .reject(&:unix?)
    .reject(&:ipv4_loopback?)
    .reject(&:ipv6_loopback?)
    .first
      .ip_address
end

#provisionObject



15
16
17
18
19
20
21
22
# File 'lib/vagrant-ie/provisioner.rb', line 15

def provision
  PowerShell.open do |shell|
    shell.invoke_file({
      file: 'C:\Users\IEUser\vagrant-ie\Configure.ps1',
      args: [ @config.public_ip_addr ]
    })
  end
end