Class: VagrantPutty::Command

Inherits:
Vagrant::Command::Base
  • Object
show all
Defined in:
lib/vagrant-putty/command.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.ppk_pathObject



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

#executeObject



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