Sha256: 1776b712e920f6b43599629347433953d6dbfa2e130fbda22658a87d3ca57547
Contents?: true
Size: 626 Bytes
Versions: 15
Compression:
Stored size: 626 Bytes
Contents
require "log4r" require 'vagrant-skytap/api/environment' require 'vagrant-skytap/vm_properties' module VagrantPlugins module Skytap module Action # This action reads the SSH info for the machine and puts it into the # `:machine_ssh_info` key in the environment. class ReadSSHInfo def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant_skytap::action::read_ssh_info") end def call(env) env[:machine_ssh_info] = VmProperties.new(env[:machine].data_dir).ssh_info @app.call(env) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems