frapposelli/vagrant-vcloud

View on GitHub
lib/vagrant-vcloud/action/announce_ssh_exec.rb

Summary

Maintainability
A
0 mins
Test Coverage
module VagrantPlugins
  module VCloud
    module Action
      class AnnounceSSHExec < Vagrant::Action::Builtin::SSHExec
        def initialize(app, env)
          @app = app
        end

        def call(env)
          ssh_info = env[:machine].ssh_info
          env[:ui].success(
            "External IP for #{env[:machine].name}: #{ssh_info[:host]}"
          )
          super
        end
      end
    end
  end
end