vagrant-multi-putty 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bcb1308ea1efd27389c9ed1b0c9a988dd1181c4
4
- data.tar.gz: 715f131affcf007ee8371f747f9207dcc8949d09
3
+ metadata.gz: 795d8f4d8e9e729eb46b8ccf3574a6c3af379ca0
4
+ data.tar.gz: ee50785a4e5b8570a78548a539e082237cfc209c
5
5
  SHA512:
6
- metadata.gz: 17562cedbad15454687a397f27c5e63ac0be8353a2513f6c4016c91769c455f892f1b8471bf11aca4c34e567e02388c79fef5e791406c5ba53622b394899e061
7
- data.tar.gz: fca69320f02eae511e8abb2afbf0c8c6b81951210b7beadb4d6061e83e2b98d136ec53259d8d952956e576ca275004ee18fd71e2c71818b6a8f96b230ce917bb
6
+ metadata.gz: 7c4fa3f194ab55417d92c1b76e22d392e5eb10126264fdb54adb9b8293c9ef6c8f5c527a8a176a5e65821e8965504503e042803e71e9dea4a8581192dfbfb61d
7
+ data.tar.gz: 3298dfb73660a7473feb190c33275b3ef0168f33f80e1947ec4da42154c4053280a7df9e521ad1c3f68231b186bc314383f5c31e07eaa72e89cd475934e7c5c7
@@ -1,4 +1,10 @@
1
- v1.5.0 (2016-04-04)
2
- -------------------
3
-
4
- Added automatic putty .ppk file generation [GH-20]
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("putty", *ssh_options)
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. This plugin also supports opening putty sessions into multi-vm environments.
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
@@ -1,3 +1,3 @@
1
1
  module VagrantMultiPutty
2
- VERSION = "1.5.0"
2
+ VERSION = "1.6.0"
3
3
  end
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.5.0
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-05 00:00:00.000000000 Z
11
+ date: 2016-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: putty-key