vagrant-multi-putty 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -4
- data/README.md +1 -0
- data/lib/vagrant-multi-putty/command.rb +5 -5
- data/lib/vagrant-multi-putty/config.rb +3 -0
- data/lib/vagrant-multi-putty/plugin.rb +2 -1
- data/lib/vagrant-multi-putty/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 795d8f4d8e9e729eb46b8ccf3574a6c3af379ca0
|
|
4
|
+
data.tar.gz: ee50785a4e5b8570a78548a539e082237cfc209c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c4fa3f194ab55417d92c1b76e22d392e5eb10126264fdb54adb9b8293c9ef6c8f5c527a8a176a5e65821e8965504503e042803e71e9dea4a8581192dfbfb61d
|
|
7
|
+
data.tar.gz: 3298dfb73660a7473feb190c33275b3ef0168f33f80e1947ec4da42154c4053280a7df9e521ad1c3f68231b186bc314383f5c31e07eaa72e89cd475934e7c5c7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
v1.
|
|
2
|
-
-------------------
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
v1.6.0 (2016-11-03)
|
|
2
|
+
-------------------
|
|
3
|
+
|
|
4
|
+
FEATURES:
|
|
5
|
+
* Added the ability to override the path to the putty or putty like binary via `config.putty.ssh_client`. [GH-22]
|
|
6
|
+
|
|
7
|
+
v1.5.0 (2016-04-04)
|
|
8
|
+
-------------------
|
|
9
|
+
|
|
10
|
+
Added automatic putty .ppk file generation [GH-20]
|
data/README.md
CHANGED
|
@@ -56,6 +56,7 @@ There are currently a few additional configuration parameters available:
|
|
|
56
56
|
once all child putty processes have exited and modal mode is enabled. The
|
|
57
57
|
default block is empty.
|
|
58
58
|
* `config.putty.session`: Load settings from a saved putty session.
|
|
59
|
+
* `config.putty.ssh_client`: Allow end users to control the path to the putty or putty like (kitty for example) binary.
|
|
59
60
|
|
|
60
61
|
#### Example usage of after_modal post hook
|
|
61
62
|
This is an example which uses the the win32-activate gem written by nazoking. This
|
|
@@ -9,14 +9,14 @@ using PuTTY::Key
|
|
|
9
9
|
module VagrantMultiPutty
|
|
10
10
|
class Command < Vagrant.plugin(2, :command)
|
|
11
11
|
def execute
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
# config_global is deprecated from v1.5
|
|
14
14
|
if Gem::Version.new(::Vagrant::VERSION) >= Gem::Version.new('1.5')
|
|
15
15
|
@config = @env.vagrantfile.config
|
|
16
16
|
else
|
|
17
17
|
@config = @env.config_global
|
|
18
18
|
end
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
options = {:modal => @config.putty.modal,
|
|
21
21
|
:plain_auth => false }
|
|
22
22
|
opts = OptionParser.new do |opts|
|
|
@@ -101,13 +101,13 @@ module VagrantMultiPutty
|
|
|
101
101
|
|
|
102
102
|
# Spawn putty and detach it so we can move on.
|
|
103
103
|
@logger.debug("Putty cmd line options: #{ssh_options.to_s}")
|
|
104
|
-
pid = spawn(
|
|
104
|
+
pid = spawn(@config.putty.ssh_client, *ssh_options)
|
|
105
105
|
@logger.debug("Putty Child Pid: #{pid}")
|
|
106
106
|
Process.detach(pid)
|
|
107
107
|
end
|
|
108
|
-
|
|
108
|
+
|
|
109
109
|
private
|
|
110
|
-
|
|
110
|
+
|
|
111
111
|
def get_putty_key_file(ssh_key_path)
|
|
112
112
|
"#{ssh_key_path}.ppk".tap do |ppk_path|
|
|
113
113
|
if !File.exist?(ppk_path) || File.mtime(ssh_key_path) > File.mtime(ppk_path)
|
|
@@ -5,6 +5,7 @@ module VagrantMultiPutty
|
|
|
5
5
|
attr_accessor :after_modal_hook
|
|
6
6
|
attr_accessor :modal
|
|
7
7
|
attr_accessor :session
|
|
8
|
+
attr_accessor :ssh_client
|
|
8
9
|
|
|
9
10
|
def after_modal &proc
|
|
10
11
|
@after_modal_hook = proc
|
|
@@ -16,6 +17,7 @@ module VagrantMultiPutty
|
|
|
16
17
|
@after_modal_hook = UNSET_VALUE
|
|
17
18
|
@modal = UNSET_VALUE
|
|
18
19
|
@session = UNSET_VALUE
|
|
20
|
+
@ssh_client = UNSET_VALUE
|
|
19
21
|
end
|
|
20
22
|
|
|
21
23
|
def finalize!
|
|
@@ -24,6 +26,7 @@ module VagrantMultiPutty
|
|
|
24
26
|
@after_modal_hook = Proc.new{ } if @after_modal_hook == UNSET_VALUE
|
|
25
27
|
@modal = false if @modal == UNSET_VALUE
|
|
26
28
|
@session = nil if @session == UNSET_VALUE
|
|
29
|
+
@ssh_client = "putty" if @ssh_client == UNSET_VALUE
|
|
27
30
|
end
|
|
28
31
|
|
|
29
32
|
def validate(machine)
|
|
@@ -5,7 +5,8 @@ module VagrantMultiPutty
|
|
|
5
5
|
name "vagrant-multi-putty"
|
|
6
6
|
description <<-DESC
|
|
7
7
|
Vagrant-multi-putty allows you to ssh into your virtual machines using the putty
|
|
8
|
-
program
|
|
8
|
+
program (or other compatible ssh clients like kitty). This plugin also supports
|
|
9
|
+
opening putty sessions into multi-vm environments.
|
|
9
10
|
DESC
|
|
10
11
|
|
|
11
12
|
command "putty" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-multi-putty
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nick Downs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-04
|
|
11
|
+
date: 2016-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: putty-key
|