Sha256: 7d7bd7b13a209c0eacefc54d5b2b49dc504f915d30d02b08d4c485039d2e68d1
Contents?: true
Size: 650 Bytes
Versions: 1
Compression:
Stored size: 650 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) if env[:machine].state.id != :running fail Errors::MachineNotRunning, :machine_name => env[:machine].name end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-vcenter-0.3.3 | lib/vagrant-vcenter/action/announce_ssh_exec.rb |