Sha256: b2e6a379c4a9c672bbbb338a1a601773d63485ed753b081ffa6c08c000c01f04
Contents?: true
Size: 905 Bytes
Versions: 7
Compression:
Stored size: 905 Bytes
Contents
module VagrantPlugins module Invade module InvadeModule class Ssh < InvadeModule attr_reader :result attr_accessor :machine_name, :ssh_data def initialize(machine_name, ssh_data, result: nil) @machine_name = machine_name @ssh_data = ssh_data @result = result end def build b = binding begin # Get machine name machine_name = @machine_name # Values for vm section forward_agent = @ssh_data['forward_agent'] enabled = @ssh_data['enabled'] path = @ssh_data['path'] 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
Version data entries
7 entries across 7 versions & 1 rubygems