Class: VagrantPlugins::OCI::Action::WarnSshKeys
- Inherits:
-
Object
- Object
- VagrantPlugins::OCI::Action::WarnSshKeys
- Defined in:
- lib/vagrant-oci/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.
5 6 7 |
# File 'lib/vagrant-oci/action/warn_ssh_keys.rb', line 5 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/vagrant-oci/action/warn_ssh_keys.rb', line 9 def call(env) # Warn on ssh-key overrides if env[:machine].config.ssh.username.nil? env[:ui].warn(I18n.t("vagrant_oci.warn_ssh_vagrant_user")) end @app.call(env) end |