clc-fork-chef-metal 0.12.1.alpha.2 → 0.12.1.alpha.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e496b6dd18a74f5173016c8f862a5b2a1c9b181
|
4
|
+
data.tar.gz: db5fed301fd0feeb5a70bc204220d35dd07cb442
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 823af0a0b3eff57f74391500e9fe1ae7f46869f4a982e9ab09c0de62c042f99e1ba89e3c23bd1f17f0987d0bba7cbdc1959ed7cd7751037b994bad73634d6957
|
7
|
+
data.tar.gz: 317c4774854c5ef31317401080766aec839dd74cf3b0d51c9355dff888a841d3cc36a528a56dbdc9983d60d2652f310947041f8467900418855fead766f8951b
|
@@ -9,7 +9,7 @@ module ChefMetal
|
|
9
9
|
def initialize(convergence_options, config)
|
10
10
|
super
|
11
11
|
@install_msi_url = convergence_options[:install_msi_url] || 'http://www.opscode.com/chef/install.msi'
|
12
|
-
@install_msi_path = convergence_options[:install_msi_path] || "
|
12
|
+
@install_msi_path = convergence_options[:install_msi_path] || "$env:TEMP\\#{File.basename(@install_msi_url)}"
|
13
13
|
@chef_client_timeout = convergence_options.has_key?(:chef_client_timeout) ? convergence_options[:chef_client_timeout] : 120*60 # Default: 2 hours
|
14
14
|
end
|
15
15
|
|
@@ -62,7 +62,7 @@ $file.Close
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def escape(string)
|
65
|
-
"
|
65
|
+
"\"#{string.gsub("\"", "`\"")}\""
|
66
66
|
end
|
67
67
|
|
68
68
|
def available?
|
@@ -80,14 +80,14 @@ $file.Close
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def make_url_available_to_remote(local_url)
|
83
|
-
uri = URI(local_url)
|
84
|
-
host = Socket.getaddrinfo(uri.host, uri.scheme, nil, :STREAM)[0][3]
|
85
|
-
if host == '127.0.0.1' || host == '::1'
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
end
|
83
|
+
# uri = URI(local_url)
|
84
|
+
# host = Socket.getaddrinfo(uri.host, uri.scheme, nil, :STREAM)[0][3]
|
85
|
+
# if host == '127.0.0.1' || host == '::1'
|
86
|
+
# unless session.forward.active_remotes.any? { |port, bind| port == uri.port && bind == uri.host }
|
87
|
+
# Chef::Log.debug("Forwarding local server #{uri.host}:#{uri.port} to port #{uri.port} on #{username}@#{self.host}")
|
88
|
+
# session.forward.remote(uri.port, uri.host, uri.port)
|
89
|
+
# end
|
90
|
+
# end
|
91
91
|
local_url
|
92
92
|
end
|
93
93
|
|
@@ -120,6 +120,7 @@ $file.Close
|
|
120
120
|
attr_reader :exitstatus
|
121
121
|
attr_reader :command
|
122
122
|
attr_reader :options
|
123
|
+
attr_reader :config
|
123
124
|
|
124
125
|
def error!
|
125
126
|
if exitstatus != 0
|
data/lib/chef_metal/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clc-fork-chef-metal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.1.alpha.
|
4
|
+
version: 0.12.1.alpha.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Keiser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|