Class: VagrantPlugins::VCloud::Action::AnnounceSSHExec

Inherits:
Vagrant::Action::Builtin::SSHExec
  • Object
show all
Defined in:
lib/vagrant-vcloud/action/announce_ssh_exec.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ AnnounceSSHExec

Returns a new instance of AnnounceSSHExec.


5
6
7
# File 'lib/vagrant-vcloud/action/announce_ssh_exec.rb', line 5

def initialize(app, env)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object


9
10
11
12
13
14
15
# File 'lib/vagrant-vcloud/action/announce_ssh_exec.rb', line 9

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