capistrano_winrm 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -17,10 +17,7 @@ INSTALL (Resides on rubygems.org):
17
17
  gem install -r capistrano_winrm
18
18
 
19
19
  TO USE:
20
- require 'capistrano_winrm'
21
- set :winrm_user, 'myuser'
22
- set :winrm_password, 'mypass'
23
- set :winrm_ssl_ca_store, '/path/to/ssl/certs' # usually /etc/ssl/certs
20
+ See examples/capfile
24
21
 
25
22
  --------------------------------------------------------------------------
26
23
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.2
@@ -25,6 +25,6 @@ Gem::Specification.new do |s|
25
25
  s.extra_rdoc_files = %w(README)
26
26
 
27
27
  s.required_ruby_version = '>= 1.9.0'
28
- s.add_runtime_dependency 'capistrano', '>= 2.5.18'
29
- s.add_runtime_dependency 'winrm', '>= 1.0.0rc1'
28
+ s.add_runtime_dependency 'capistrano', '~> 2.14.1'
29
+ s.add_runtime_dependency 'winrm', '~> 1.1.2'
30
30
  end
@@ -14,7 +14,7 @@ class WINRM
14
14
  def [](key)
15
15
  @int_hash[key.to_sym]
16
16
  end
17
-
17
+
18
18
  def []=(key, value)
19
19
  @int_hash[key.to_sym] = value
20
20
  end
@@ -50,13 +50,24 @@ class WINRM
50
50
  def establish_winrm(opts)
51
51
  http_method = ( server.port.to_s=~/(443|5986)/ ? 'https' : 'http' )
52
52
  endpoint = "#{http_method}://#{server}/wsman"
53
+
54
+ transport_opts = {}
55
+ transport_opts[:disable_sspi] = opts[:winrm_disable_sspi] unless opts[:winrm_disable_sspi].nil?
56
+ transport_opts[:basic_auth_only] = opts[:winrm_basic_auth_only] unless opts[:winrm_basic_auth_only].nil?
57
+
53
58
  if opts[:winrm_krb5_realm]
54
- inst = WinRM::WinRMWebService.new(endpoint, :kerberos, :realm => opts[:winrm_krb5_realm])
59
+ transport_opts[:realm] = opts[:winrm_krb5_realm]
60
+ inst = WinRM::WinRMWebService.new(endpoint, :kerberos, transport_opts)
55
61
  else
56
62
  unless opts[:winrm_ssl_ca_store]
57
- inst = WinRM::WinRMWebService.new(endpoint, :plaintext, :user => opts[:winrm_user], :pass => opts[:winrm_password])
63
+ transport_opts[:user] = opts[:winrm_user]
64
+ transport_opts[:pass] = opts[:winrm_password]
65
+ inst = WinRM::WinRMWebService.new(endpoint, :plaintext, transport_opts)
58
66
  else
59
- inst = WinRM::WinRMWebService.new(endpoint, :ssl, :user => opts[:winrm_user], :pass => opts[:winrm_password], :ca_trust_path => opts[:winrm_ssl_ca_store])
67
+ transport_opts[:user] = opts[:winrm_user]
68
+ transport_opts[:pass] = opts[:winrm_password]
69
+ transport_opts[:ca_trust_path] = opts[:winrm_ssl_ca_store]
70
+ inst = WinRM::WinRMWebService.new(endpoint, :ssl, transport_opts)
60
71
  end
61
72
  end
62
73
  inst
metadata CHANGED
@@ -1,49 +1,57 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: capistrano_winrm
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
4
5
  prerelease:
5
- version: 1.0.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Dan Wanek
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-03-03 00:00:00 -06:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2013-02-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: capistrano
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: 2.5.18
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 2.14.1
25
22
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: winrm
29
23
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 2.14.1
30
+ - !ruby/object:Gem::Dependency
31
+ name: winrm
32
+ requirement: !ruby/object:Gem::Requirement
31
33
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: 1.0.0rc1
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 1.1.2
36
38
  type: :runtime
37
- version_requirements: *id002
38
- description: " This gem extends Capistrano's base functionality to support WinRM which\n allows one to run commands across Windows boxes with the \"winrm_run\" method.\n"
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.1.2
46
+ description: ! " This gem extends Capistrano's base functionality to support WinRM
47
+ which\n allows one to run commands across Windows boxes with the \"winrm_run\"
48
+ method.\n"
39
49
  email: dan.wanek@gmail.com
40
50
  executables: []
41
-
42
51
  extensions: []
43
-
44
- extra_rdoc_files:
52
+ extra_rdoc_files:
45
53
  - README
46
- files:
54
+ files:
47
55
  - README
48
56
  - Rakefile
49
57
  - VERSION
@@ -53,36 +61,32 @@ files:
53
61
  - lib/capistrano_winrm/command.rb
54
62
  - lib/capistrano_winrm/configuration/connections.rb
55
63
  - lib/winrm_connection.rb
56
- has_rdoc: true
57
64
  homepage: https://github.com/zenchild/capistrano_winrm
58
65
  licenses: []
59
-
60
66
  post_install_message:
61
- rdoc_options:
67
+ rdoc_options:
62
68
  - -x
63
69
  - test/
64
70
  - -x
65
71
  - examples/
66
- require_paths:
72
+ require_paths:
67
73
  - lib
68
- required_ruby_version: !ruby/object:Gem::Requirement
74
+ required_ruby_version: !ruby/object:Gem::Requirement
69
75
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
73
79
  version: 1.9.0
74
- required_rubygems_version: !ruby/object:Gem::Requirement
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
81
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: "0"
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
80
86
  requirements: []
81
-
82
87
  rubyforge_project:
83
- rubygems_version: 1.5.0
88
+ rubygems_version: 1.8.24
84
89
  signing_key:
85
90
  specification_version: 3
86
91
  summary: Extends Capistrano with WinRM support.
87
92
  test_files: []
88
-