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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e192142e63c3c7ee1615c4fa86159ff5f669e87
4
- data.tar.gz: cb35405627366fa081485c8370c044bfc01960c6
3
+ metadata.gz: 84cdb442985a4aa6f358371b75f07cae31af62d4
4
+ data.tar.gz: 2a430e03749d55bc5520674305919a7b7238b35c
5
5
  SHA512:
6
- metadata.gz: e957acddf30b620bca39b3b58ad3ec157b031820d08ee22114da5a461badf635954f9ad395fd3468b88f822dd9bd964b6c805b5ff250d56e35ba203e86ed1926
7
- data.tar.gz: f1400f8ffb53edb80bd071f942d48bd6868b217328e639ed751fd662bffc90c6c81256fdeb5a1e383222e66baaae6e0e35b54387e7df6ffaf3e78c18626d7059
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"
@@ -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 -%>
@@ -1,3 +1,3 @@
1
1
  module Configspec
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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