Class: VagrantPlugins::Google::Action::WarnSshKeys
- Inherits:
-
Object
- Object
- VagrantPlugins::Google::Action::WarnSshKeys
- Defined in:
- lib/vagrant-google/action/warn_ssh_keys.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ WarnSshKeys
constructor
A new instance of WarnSshKeys.
Constructor Details
#initialize(app, env) ⇒ WarnSshKeys
Returns a new instance of WarnSshKeys.
18 19 20 |
# File 'lib/vagrant-google/action/warn_ssh_keys.rb', line 18 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/vagrant-google/action/warn_ssh_keys.rb', line 22 def call(env) # Warn on ssh-key overrides if env[:machine].config.ssh.username.nil? env[:ui].warn(I18n.t("vagrant_google.warn_ssh_vagrant_user")) end @app.call(env) end |