configspec 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/configspec.gemspec +1 -0
- data/lib/configspec/setup.rb +3 -0
- data/lib/configspec/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84cdb442985a4aa6f358371b75f07cae31af62d4
|
4
|
+
data.tar.gz: 2a430e03749d55bc5520674305919a7b7238b35c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 039a31b4a47dd276aae0874795cedfe4b0aee4ff8cb2790eb83f38000daf3d5f3a3f4de8ecadd6ce7ed80d573db4ba8f2492148656a3851068d4f4c2e9a5ad2c
|
7
|
+
data.tar.gz: 4061e55e0671cb401e7c70cefe16fd9c7ab4599cedb153b455280f430c1ebed45bc6f8da46dcac93b5ed219462fe2b38bd6b6b091c7b59112d133a6790671fff
|
data/configspec.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "net-ssh"
|
22
|
+
spec.add_runtime_dependency "net-scp"
|
22
23
|
spec.add_runtime_dependency "rspec", ">= 2.13.0"
|
23
24
|
spec.add_runtime_dependency "specinfra", ">= 0.0.6"
|
24
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
data/lib/configspec/setup.rb
CHANGED
@@ -207,6 +207,7 @@ require 'pathname'
|
|
207
207
|
<% end -%>
|
208
208
|
<% if @backend_type == 'Ssh' -%>
|
209
209
|
require 'net/ssh'
|
210
|
+
require 'net/scp'
|
210
211
|
<% end -%>
|
211
212
|
<% if @backend_type == 'WinRM' -%>
|
212
213
|
require 'winrm'
|
@@ -242,6 +243,7 @@ RSpec.configure do |c|
|
|
242
243
|
host = File.basename(Pathname.new(file).dirname)
|
243
244
|
if c.host != host
|
244
245
|
c.ssh.close if c.ssh
|
246
|
+
c.scp.close if c.scp
|
245
247
|
c.host = host
|
246
248
|
options = Net::SSH::Config.for(c.host)
|
247
249
|
user = options[:user] || Etc.getlogin
|
@@ -263,6 +265,7 @@ RSpec.configure do |c|
|
|
263
265
|
end
|
264
266
|
<%- end -%>
|
265
267
|
c.ssh = Net::SSH.start(host, user, options)
|
268
|
+
c.scp = Net::SCP.start(host, user, options)
|
266
269
|
end
|
267
270
|
end
|
268
271
|
<%- end -%>
|
data/lib/configspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: net-scp
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rspec
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|