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 +1 -4
- data/VERSION +1 -1
- data/capistrano_winrm.gemspec +2 -2
- data/lib/winrm_connection.rb +15 -4
- metadata +49 -45
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
|
-
|
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.
|
1
|
+
1.0.2
|
data/capistrano_winrm.gemspec
CHANGED
@@ -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', '
|
29
|
-
s.add_runtime_dependency 'winrm', '
|
28
|
+
s.add_runtime_dependency 'capistrano', '~> 2.14.1'
|
29
|
+
s.add_runtime_dependency 'winrm', '~> 1.1.2'
|
30
30
|
end
|
data/lib/winrm_connection.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
14
|
-
|
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
|
-
|
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.
|
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
|
-
|
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.
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 1.1.2
|
36
38
|
type: :runtime
|
37
|
-
|
38
|
-
|
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:
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
80
86
|
requirements: []
|
81
|
-
|
82
87
|
rubyforge_project:
|
83
|
-
rubygems_version: 1.
|
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
|
-
|