Sha256: c22cfc8e608ab2e2280b5ec3f9d037c548a7c3310c584de60cbd479fca1c3d4d
Contents?: true
Size: 1.05 KB
Versions: 7
Compression:
Stored size: 1.05 KB
Contents
module VagrantPlugins module Invade module InvadeModule module Network class Public < InvadeModule attr_reader :result attr_accessor :machine_name, :public_network_data def initialize(machine_name, public_network_data, result: nil) @machine_name = machine_name @public_network_data = public_network_data @result = result end def build b = binding begin # Get machine name machine_name = @machine_name # Values for network section ip = @public_network_data['ip'] dhcp = @public_network_data['dhcp'] bridge = @public_network_data['bridge'] auto_config = @public_network_data['auto_config'] eruby = Erubis::Eruby.new(File.read(self.get_template_path(__FILE__))) @result = eruby.result b rescue StandardError => e raise(e) end end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems