Class: VagrantPlugins::GitCredentials::Action::AddKey

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/vagrant-gitcredentials/Action/AddKey.rb

Instance Method Summary collapse

Methods included from Util

#createKey, #deleteKey, #promptCredentials

Constructor Details

#initialize(app, env) ⇒ AddKey

Returns a new instance of AddKey.



9
10
11
12
13
# File 'lib/vagrant-gitcredentials/Action/AddKey.rb', line 9

def initialize(app, env)
	@app = app
	@ui = env[:ui]
	@machine = env[:machine]
end

Instance Method Details

#call(env) ⇒ Object



15
16
17
18
# File 'lib/vagrant-gitcredentials/Action/AddKey.rb', line 15

def call(env)
	createKey()	
	@app.call(env)
end