Sha256: e0b92a8aeaa2db1c0837a97aaf7bbd81fe69fbeae6b2c907a03abbc83a0fd4df
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
module VagrantPlugins module Invade module InvadeModule module Plugin class Hostmanager < InvadeModule require 'vagrant' attr_reader :result attr_accessor :machine_name, :ui, :hostmanager_data def initialize(machine_name, hostmanager_data, result: nil) @machine_name = machine_name @hostmanager_data = hostmanager_data @result = result end def build b = binding begin # Get machine name machine_name = @machine_name # Values for hostmanager section enabled = @hostmanager_data['enabled'] aliases = @hostmanager_data['aliases'] eruby = Erubis::Eruby.new(File.read(self.get_template_path(__FILE__))) @result = eruby.result b rescue TypeError, SyntaxError, SystemCallError => e raise(e) end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-invade-0.8.0 | lib/vagrant-invade/module/plugin/hostmanager/hostmanager.rb |
vagrant-invade-0.7.0 | lib/vagrant-invade/module/plugin/hostmanager/hostmanager.rb |