Sha256: f67b1f3a41d0993faa8cf8235bf838e040d4fee9704683f568a6a947ca646972
Contents?: true
Size: 1.2 KB
Versions: 4
Compression:
Stored size: 1.2 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'] manage_host = @hostmanager_data['manage_host'] ignore_private_ip = @hostmanager_data['ignore_private_ip'] include_offline =@hostmanager_data['include_offline'] 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
4 entries across 4 versions & 1 rubygems