specinfra 1.27.0 → 1.27.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: 7658e7fe4c67252486e77d68ac990288030c5cf0
4
- data.tar.gz: c68fec3ced189e0fa2d2ef201768f3860d7c7e3e
3
+ metadata.gz: 83af416377b0ed2f4c241ac74d82f7a0898e43ec
4
+ data.tar.gz: 7543a9182df8765d2961b3e0fb3ea635e8940fab
5
5
  SHA512:
6
- metadata.gz: c4ea2d208cd76f18efad1c414023bac31f75d460497e164284212623b4ff1e68a05a7f696844dee21ee7f323253371141d1310043c9b15fec1798be78f8174c0
7
- data.tar.gz: a4b7e852f0ee01390ee3d22162b5cfb77d3a4a4a8fc8903a313c950e54212dbdc7c4c2ba4e12bdeea5d45408f66dd9e4bb925c8aad089ec00e5485a2f6b2ef91
6
+ metadata.gz: f57d1bfb3e5daa4f4982444f74e75ea8d10196af297f6dfb7f0eb33ea73079faa4b065f0c1c23c692a78c65815320dc9c1de695d82c6440ada8687a651426a46
7
+ data.tar.gz: 820ae72274841b017505385a107088f50a837283ab68b5e278dc0458bcd35577425f01ed4e0bda59a35ae02d6cac94affff3cbef5e5381cbe38c51df89a8e034
@@ -2,8 +2,12 @@ module SpecInfra
2
2
  module Command
3
3
  class Debian < Linux
4
4
  def check_enabled(service, level=3)
5
- # Until everything uses Upstart, this needs an OR.
6
- "ls /etc/rc#{level}.d/ | grep -- '^S..#{escape(service)}' || grep 'start on' /etc/init/#{escape(service)}.conf"
5
+ # Debian jessie default init system (on Linux) is systemd,
6
+ # but upstart and sysvinit is also available.
7
+ cmd = "if [ -d /run/systemd/system ]; then systemctl --plain list-dependencies runlevel#{level}.target | grep '^#{escape(service)}.service$'; "
8
+ cmd += "else ls /etc/rc#{level}.d/ | grep -- '^S..#{escape(service)}' || grep 'start on' /etc/init/#{escape(service)}.conf; "
9
+ cmd += "fi"
10
+ "sh -c \"#{cmd}\""
7
11
  end
8
12
 
9
13
  def check_installed(package, version=nil)
@@ -1,3 +1,3 @@
1
1
  module SpecInfra
2
- VERSION = "1.27.0"
2
+ VERSION = "1.27.1"
3
3
  end
data/wercker.yml CHANGED
@@ -26,35 +26,39 @@ 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 itamae
31
+ code: bundle exec itamae ssh --host centos65 --vagrant recipe.rb
32
+ cwd: $WORKING_DIR
29
33
  - script:
30
34
  name: Run vagrant reload centos65
31
35
  code: vagrant reload centos65
32
36
  cwd: $WORKING_DIR
33
37
  - script:
34
38
  name: Run rake spec:centos65
35
- code: rake spec:centos65
39
+ code: DIGITALOCEAN=true rake spec:centos65
36
40
  cwd: $WORKING_DIR
37
41
  - script:
38
42
  name: Run vagrant up ubuntu1404
39
43
  code: vagrant up ubuntu1404 --provider=digital_ocean
40
44
  cwd: $WORKING_DIR
45
+ - script:
46
+ name: Run itamae
47
+ code: bundle exec itamae ssh --host ubuntu1404 --vagrant recipe.rb
48
+ cwd: $WORKING_DIR
41
49
  - script:
42
50
  name: Run vagrant reload ubuntu1404
43
51
  code: vagrant reload ubuntu1404
44
52
  cwd: $WORKING_DIR
45
53
  - script:
46
54
  name: Run rake spec:ubuntu1404
47
- code: rake spec:ubuntu1404
55
+ code: DIGITALOCEAN=true rake spec:ubuntu1404
48
56
  cwd: $WORKING_DIR
49
57
 
50
58
  after-steps:
51
59
  - script:
52
- name: Run vagrant destroy centos65
53
- code: vagrant destroy centos65 --force
54
- cwd: $WORKING_DIR
55
- - script:
56
- name: Run vagrant destroy ubuntu1404
57
- code: vagrant destroy ubuntu1404 --force
60
+ name: Run vagrant destroy
61
+ code: vagrant destroy --force
58
62
  cwd: $WORKING_DIR
59
63
  - 1syo/idobata-notify@0.1.1:
60
64
  token: $IDOBATA_TOKEN
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.27.0
4
+ version: 1.27.1
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-09-04 00:00:00.000000000 Z
11
+ date: 2014-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler