Class: VagrantPutty::Command
- Inherits:
-
Vagrant::Command::Base
- Object
- Vagrant::Command::Base
- VagrantPutty::Command
- Defined in:
- lib/vagrant-putty/command.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.ppk_path ⇒ Object
11 12 13 |
# File 'lib/vagrant-putty/command.rb', line 11 def self.ppk_path File.join Gem.loaded_specs['vagrant'].full_gem_path, "keys", "vagrant.ppk" end |
Instance Method Details
#execute ⇒ Object
7 8 9 |
# File 'lib/vagrant-putty/command.rb', line 7 def execute system("putty vagrant@localhost -i #{self.class.ppk_path} -P 2222") end |