Sha256: a985b954c70cd9178be5650b9918e3ed769645dcb8129abc969ac8f8c3e8816c

Contents?: true

Size: 497 Bytes

Versions: 8

Compression:

Stored size: 497 Bytes

Contents

module VagrantPlugins
  module VCenter
    module Action
      # Extends the Builtin SSHExec and announces the external IP.
      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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vagrant-vcenter-0.3.2 lib/vagrant-vcenter/action/announce_ssh_exec.rb
vagrant-vcenter-0.3.1 lib/vagrant-vcenter/action/announce_ssh_exec.rb
vagrant-vcenter-0.3.0 lib/vagrant-vcenter/action/announce_ssh_exec.rb
vagrant-vcenter-0.2.1 lib/vagrant-vcenter/action/announce_ssh_exec.rb
vagrant-vcenter-0.2.0 lib/vagrant-vcenter/action/announce_ssh_exec.rb
vagrant-vcenter-0.1.1 lib/vagrant-vcenter/action/announce_ssh_exec.rb
vagrant-vcenter-0.1.0 lib/vagrant-vcenter/action/announce_ssh_exec.rb
vagrant-vcenter-0.0.2.pre.dev lib/vagrant-vcenter/action/announce_ssh_exec.rb