specinfra 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specinfra/command/darwin.rb +10 -0
- data/lib/specinfra/version.rb +1 -1
- data/wercker.yml +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4eeb384bd812671cb87c1f274afddb397675c6e1
|
4
|
+
data.tar.gz: 487011418240f72292df698c40a1831ff7791ff9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7390e25288b043c110fdc3d4457f8ef954295ed328fc92323c90f61612eb4327aa55b9faaa5cc5354c5c084b5927b89573ebba93c190876b12703f877e9b336
|
7
|
+
data.tar.gz: 19f3f6388cd7eb6479efd3393d717ffd02791c1b234a53f74634c253430d99e286aa461208fc06cea0ff7be44eb3fcb04f4f2c5b8095dd919dbb431263bfa8c4
|
@@ -36,6 +36,16 @@ module SpecInfra
|
|
36
36
|
"sudo -u #{user} -s /bin/test -#{access} #{file}"
|
37
37
|
end
|
38
38
|
|
39
|
+
def check_installed(package, version=nil)
|
40
|
+
escaped_package = escape(package)
|
41
|
+
if version
|
42
|
+
cmd = "/usr/local/bin/brew info #{escaped_package} | grep -E '^\/usr\/local\/Cellar\/#{escaped_package}\/#{escape(version)}'"
|
43
|
+
else
|
44
|
+
cmd = "/usr/local/bin/brew list -1 | grep -E '^#{escaped_package}$'"
|
45
|
+
end
|
46
|
+
cmd
|
47
|
+
end
|
48
|
+
|
39
49
|
def install(package)
|
40
50
|
cmd = "brew install '#{package}'"
|
41
51
|
end
|
data/lib/specinfra/version.rb
CHANGED
data/wercker.yml
CHANGED
@@ -26,6 +26,10 @@ build:
|
|
26
26
|
name: Run vagrant up centos65
|
27
27
|
code: vagrant up centos65 --provider=digital_ocean
|
28
28
|
cwd: $WORKING_DIR
|
29
|
+
- script:
|
30
|
+
name: Run vagrant reload centos65
|
31
|
+
code: vagrant reload centos65
|
32
|
+
cwd: $WORKING_DIR
|
29
33
|
- script:
|
30
34
|
name: Run rake spec:centos65
|
31
35
|
code: rake spec:centos65
|
@@ -34,6 +38,10 @@ build:
|
|
34
38
|
name: Run vagrant up ubuntu1310
|
35
39
|
code: vagrant up ubuntu1310 --provider=digital_ocean
|
36
40
|
cwd: $WORKING_DIR
|
41
|
+
- script:
|
42
|
+
name: Run vagrant reload ubuntu1310
|
43
|
+
code: vagrant reload ubuntu1310
|
44
|
+
cwd: $WORKING_DIR
|
37
45
|
- script:
|
38
46
|
name: Run rake spec:ubuntu1310
|
39
47
|
code: rake spec:ubuntu1310
|
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: 1.
|
4
|
+
version: 1.9.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-05-
|
11
|
+
date: 2014-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|