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

Version Path
vagrant-skytap-0.2.3 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.2.2 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.2.1 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.2.0 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.1.11 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.1.10 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.1.9 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.1.8 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.1.7 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.1.6 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.1.5 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.1.4 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.1.3 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.1.2 lib/vagrant-skytap/action/read_ssh_info.rb
vagrant-skytap-0.1.1a lib/vagrant-skytap/action/read_ssh_info.rb