Method: Vagrant::Action::Builtin::Confirm#initialize

Defined in:
lib/vagrant/action/builtin/confirm.rb

#initialize(app, env, message, force_key = nil) ⇒ Confirm

For documentation, read the description of the Vagrant::Action::Builtin::Confirm class.

Parameters:

  • message (String)

    The message to ask the user.

  • force_key (Symbol) (defaults to: nil)

    The key that if present and true in the environment hash will skip the confirmation question.



14
15
16
17
18
# File 'lib/vagrant/action/builtin/confirm.rb', line 14

def initialize(app, env, message, force_key=nil)
  @app      = app
  @message  = message
  @force_key = force_key
end