Sha256: badc6480fed7fdec8f87080e3b88571e08b3b7be8f738d7de7cebb0ebe5032f2
Contents?: true
Size: 858 Bytes
Versions: 1
Compression:
Stored size: 858 Bytes
Contents
module VagrantPlugins module GuestArch module Cap class ConfigureNetworks def self.configure_networks(machine, networks) networks.each do |network| entry = TemplateRenderer.render("guests/arch/network_#{network[:type]}", :options => network) temp = Tempfile.new("vagrant") temp.binmode temp.write(entry) temp.close machine.communicate.upload(temp.path, "/tmp/vagrant_network") machine.communicate.sudo("ln -sf /dev/null /etc/udev/rules.d/80-net-name-slot.rules") machine.communicate.sudo("mv /tmp/vagrant_network /etc/netctl/eth#{network[:interface]}") machine.communicate.sudo("netctl start eth#{network[:interface]}") end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tnargav-1.2.3 | plugins/guests/arch/cap/configure_networks.rb |