specinfra 0.8.0 → 1.0.0

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: 0a2dbc0cad70c29af27ba9302a8f8e2c12ee0319
4
- data.tar.gz: 44678a39c8799d2a3d3f3345395afc158cf81694
3
+ metadata.gz: e0496b81232f15579c3efcce2bef98adc764fc7d
4
+ data.tar.gz: 70085d506610ee34667126938d98cb84ed2606e6
5
5
  SHA512:
6
- metadata.gz: 8c8206acbcbd6d1cf32699c5eacc586d1ce80f3a614bdc8adca7857e2ecc1532a586699729e8a77bf6d692a88fb1063ca4588e0805e2be2e524a9fe529bb5e68
7
- data.tar.gz: b2ec935f95136a99b787fbe2fcfcc5a156c603c934550fa302cfbff0f0052bfe285ef6f80aa581963eb60755a9cb56a8e86c32f8d919dd4f6b455a6965d86eaf
6
+ metadata.gz: f8dca453bd2d181b32f79f0c7b6f1812bb1cc583820b0a6cf6708ff4d22dd076489e376de3be732a2d81148c920e185b843874bac21d6013bd8d6fd40e50f37a
7
+ data.tar.gz: d43cc4d1909e48c10db30350298ff814e6b12c505191162ce6b79fe361599b74d8258bb537749e571d0e6c04466e5486791868d920e5c081507171c064535902
data/.travis.yml CHANGED
@@ -12,7 +12,3 @@ before_install:
12
12
  script:
13
13
  - bundle exec rake spec
14
14
 
15
- matrix:
16
- allow_failures:
17
- - rvm: 2.0.0
18
-
@@ -24,7 +24,11 @@ module SpecInfra
24
24
 
25
25
  # Default action is to call check_zero with args
26
26
  def method_missing(meth, *args, &block)
27
- check_zero(meth, *args)
27
+ if meth =~ /^check/
28
+ check_zero(meth, *args)
29
+ else
30
+ run_command(commands.send(meth, *args))
31
+ end
28
32
  end
29
33
  end
30
34
  end
@@ -321,6 +321,10 @@ module SpecInfra
321
321
  def get_package_version(package, opts=nil)
322
322
  raise NotImplementedError.new
323
323
  end
324
+
325
+ def get_ipaddress_of_host(name)
326
+ "getent hosts #{escape(name)} | awk '{print $1}'"
327
+ end
324
328
  end
325
329
  end
326
330
  end
@@ -1,3 +1,3 @@
1
1
  module SpecInfra
2
- VERSION = "0.8.0"
2
+ VERSION = "1.0.0"
3
3
  end
data/specinfra.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
- spec.add_development_dependency "rake"
22
+ spec.add_development_dependency "rake", "~> 10.1.1"
23
23
  spec.add_development_dependency "rspec"
24
24
  spec.add_development_dependency "octorelease"
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-19 00:00:00.000000000 Z
11
+ date: 2014-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 10.1.1
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 10.1.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement