pleaserun 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +8 -12
- data/Gemfile.lock +68 -61
- data/lib/pleaserun/detector.rb +2 -1
- data/pleaserun.gemspec +3 -3
- data/spec/pleaserun/platform/systemd_spec.rb +2 -2
- data/spec/pleaserun/platform/upstart_spec.rb +2 -2
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79e4406ef60541b06355384567e5996f601ba3f1
|
4
|
+
data.tar.gz: 2a7229543b510dc11eebddaa57c9bb4086d4ee26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e108a2241aae8a69ad9f39ac3cc5ebfcc583f3682f5af46a813c290e8841ac16a23442c46d0580fd056342b7b03023aef11a4966d1f74eb28fe781d748174b3
|
7
|
+
data.tar.gz: b95b589a5d70a618aceb1f1318e3a02c4957a7818311fd8b6a64673ba078959bf39200f9f80d691b276bf9486063f2d75c1b232f1cb5a6321e344068b8732fd2
|
data/Gemfile
CHANGED
@@ -1,14 +1,10 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gem "cabin"
|
4
|
-
gem "stud"
|
5
|
-
gem "mustache"
|
6
|
-
gem "insist"
|
7
|
-
gem "ohai"
|
2
|
+
gemspec
|
8
3
|
|
9
|
-
|
10
|
-
gem "rspec"
|
11
|
-
gem "guard"
|
12
|
-
gem "guard-rspec"
|
13
|
-
gem "net-ssh"
|
14
|
-
gem "peach"
|
4
|
+
group :development do
|
5
|
+
gem "rspec", "~> 3.0.0"
|
6
|
+
gem "guard"
|
7
|
+
gem "guard-rspec"
|
8
|
+
gem "net-ssh"
|
9
|
+
gem "peach"
|
10
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,89 +1,96 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
pleaserun (0.0.10)
|
5
|
+
cabin (> 0)
|
6
|
+
clamp
|
7
|
+
insist
|
8
|
+
mustache (= 0.99.8)
|
9
|
+
stud
|
10
|
+
|
1
11
|
GEM
|
2
12
|
remote: https://rubygems.org/
|
3
13
|
specs:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
timers (~> 1.1.0)
|
9
|
-
clamp (0.6.3)
|
14
|
+
cabin (0.7.1)
|
15
|
+
celluloid (0.16.0)
|
16
|
+
timers (~> 4.0.0)
|
17
|
+
clamp (0.6.4)
|
10
18
|
coderay (1.1.0)
|
11
19
|
diff-lcs (1.2.5)
|
12
|
-
ffi (1.9.
|
13
|
-
|
14
|
-
|
20
|
+
ffi (1.9.6)
|
21
|
+
ffi (1.9.6-java)
|
22
|
+
formatador (0.2.5)
|
23
|
+
guard (2.12.4)
|
15
24
|
formatador (>= 0.2.4)
|
16
|
-
listen (~> 2.
|
25
|
+
listen (~> 2.7)
|
17
26
|
lumberjack (~> 1.0)
|
27
|
+
nenv (~> 0.1)
|
28
|
+
notiffany (~> 0.0)
|
18
29
|
pry (>= 0.9.12)
|
30
|
+
shellany (~> 0.0)
|
19
31
|
thor (>= 0.18.1)
|
20
|
-
guard-
|
21
|
-
|
22
|
-
|
23
|
-
|
32
|
+
guard-compat (1.2.1)
|
33
|
+
guard-rspec (4.5.0)
|
34
|
+
guard (~> 2.1)
|
35
|
+
guard-compat (~> 1.1)
|
36
|
+
rspec (>= 2.99.0, < 4.0)
|
37
|
+
hitimes (1.2.2)
|
38
|
+
hitimes (1.2.2-java)
|
24
39
|
insist (1.0.0)
|
25
|
-
|
26
|
-
listen (2.4.0)
|
40
|
+
listen (2.8.5)
|
27
41
|
celluloid (>= 0.15.2)
|
28
42
|
rb-fsevent (>= 0.9.3)
|
29
43
|
rb-inotify (>= 0.9)
|
30
|
-
lumberjack (1.0.
|
44
|
+
lumberjack (1.0.9)
|
31
45
|
method_source (0.8.2)
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
mixlib-log (1.6.0)
|
39
|
-
mixlib-shellout (1.3.0)
|
40
|
-
mustache (0.99.5)
|
41
|
-
net-ssh (2.8.0)
|
42
|
-
ohai (6.20.0)
|
43
|
-
ipaddress
|
44
|
-
mixlib-cli
|
45
|
-
mixlib-config
|
46
|
-
mixlib-log
|
47
|
-
mixlib-shellout
|
48
|
-
systemu (~> 2.5.2)
|
49
|
-
yajl-ruby
|
46
|
+
mustache (0.99.8)
|
47
|
+
nenv (0.2.0)
|
48
|
+
net-ssh (2.9.2)
|
49
|
+
notiffany (0.0.6)
|
50
|
+
nenv (~> 0.1)
|
51
|
+
shellany (~> 0.0)
|
50
52
|
peach (0.5.1)
|
51
|
-
pry (0.
|
52
|
-
coderay (~> 1.0)
|
53
|
-
method_source (~> 0.8)
|
53
|
+
pry (0.10.1)
|
54
|
+
coderay (~> 1.1.0)
|
55
|
+
method_source (~> 0.8.1)
|
56
|
+
slop (~> 3.4)
|
57
|
+
pry (0.10.1-java)
|
58
|
+
coderay (~> 1.1.0)
|
59
|
+
method_source (~> 0.8.1)
|
54
60
|
slop (~> 3.4)
|
61
|
+
spoon (~> 0.0)
|
55
62
|
rb-fsevent (0.9.4)
|
56
|
-
rb-inotify (0.9.
|
63
|
+
rb-inotify (0.9.5)
|
57
64
|
ffi (>= 0.5.0)
|
58
|
-
rspec (
|
59
|
-
rspec-core (~>
|
60
|
-
rspec-expectations (~>
|
61
|
-
rspec-mocks (~>
|
62
|
-
rspec-core (
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
65
|
+
rspec (3.0.0)
|
66
|
+
rspec-core (~> 3.0.0)
|
67
|
+
rspec-expectations (~> 3.0.0)
|
68
|
+
rspec-mocks (~> 3.0.0)
|
69
|
+
rspec-core (3.0.4)
|
70
|
+
rspec-support (~> 3.0.0)
|
71
|
+
rspec-expectations (3.0.4)
|
72
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
73
|
+
rspec-support (~> 3.0.0)
|
74
|
+
rspec-mocks (3.0.4)
|
75
|
+
rspec-support (~> 3.0.0)
|
76
|
+
rspec-support (3.0.4)
|
77
|
+
shellany (0.0.1)
|
78
|
+
slop (3.6.0)
|
79
|
+
spoon (0.0.4)
|
68
80
|
ffi
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
yajl-ruby (1.2.0)
|
81
|
+
stud (0.0.19)
|
82
|
+
thor (0.19.1)
|
83
|
+
timers (4.0.1)
|
84
|
+
hitimes
|
74
85
|
|
75
86
|
PLATFORMS
|
87
|
+
java
|
76
88
|
ruby
|
77
89
|
|
78
90
|
DEPENDENCIES
|
79
|
-
cabin
|
80
|
-
clamp
|
81
91
|
guard
|
82
92
|
guard-rspec
|
83
|
-
insist
|
84
|
-
mustache
|
85
93
|
net-ssh
|
86
|
-
ohai
|
87
94
|
peach
|
88
|
-
|
89
|
-
|
95
|
+
pleaserun!
|
96
|
+
rspec (~> 3.0.0)
|
data/lib/pleaserun/detector.rb
CHANGED
@@ -8,6 +8,7 @@ class PleaseRun::Detector
|
|
8
8
|
|
9
9
|
# A mapping of of [os, version] => [runner, version]
|
10
10
|
MAPPING = {
|
11
|
+
["amazon", "2014.09"] => ["upstart", "0.6.5"],
|
11
12
|
["arch", "rolling"] => ["systemd", "default"],
|
12
13
|
["centos", "5"] => ["sysv", "lsb-3.1"],
|
13
14
|
["centos", "6"] => ["upstart", "0.6.5"],
|
@@ -38,7 +39,7 @@ class PleaseRun::Detector
|
|
38
39
|
begin
|
39
40
|
platform, version = detect_facter
|
40
41
|
rescue LoadError
|
41
|
-
raise UnknownSystem
|
42
|
+
raise UnknownSystem, "Could not detect because neither ohai nor facter libraries are found"
|
42
43
|
end
|
43
44
|
end
|
44
45
|
|
data/pleaserun.gemspec
CHANGED
@@ -2,7 +2,7 @@ Gem::Specification.new do |spec|
|
|
2
2
|
files = `git ls-files`.split("\n")
|
3
3
|
|
4
4
|
spec.name = "pleaserun"
|
5
|
-
spec.version = "0.0.
|
5
|
+
spec.version = "0.0.10"
|
6
6
|
spec.summary = "pleaserun"
|
7
7
|
spec.description = "pleaserun"
|
8
8
|
spec.license = "Apache 2.0"
|
@@ -10,9 +10,9 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.add_dependency "cabin", ">0" # for logging. apache 2 license
|
11
11
|
spec.add_dependency "clamp"
|
12
12
|
spec.add_dependency "stud"
|
13
|
-
spec.add_dependency "mustache", "
|
13
|
+
spec.add_dependency "mustache", "0.99.8"
|
14
14
|
spec.add_dependency "insist"
|
15
|
-
spec.add_dependency "ohai", "~> 6.20" # used for host detection
|
15
|
+
#spec.add_dependency "ohai", "~> 6.20" # used for host detection
|
16
16
|
|
17
17
|
spec.files = files
|
18
18
|
spec.require_paths << "lib"
|
@@ -2,8 +2,8 @@ require "testenv"
|
|
2
2
|
require "pleaserun/platform/systemd"
|
3
3
|
|
4
4
|
describe PleaseRun::Platform::Systemd do
|
5
|
-
let(:platform) {
|
6
|
-
let(:version) {
|
5
|
+
let(:platform) { "systemd" }
|
6
|
+
let(:version) { "default" }
|
7
7
|
|
8
8
|
context "deployment", :systemd => true do
|
9
9
|
it_behaves_like PleaseRun::Platform do
|
@@ -3,8 +3,8 @@ require "pleaserun/platform/upstart"
|
|
3
3
|
require "pleaserun/detector"
|
4
4
|
|
5
5
|
describe PleaseRun::Platform::Upstart do
|
6
|
-
let(:platform) {
|
7
|
-
let(:version) {
|
6
|
+
let(:platform) { "upstart" }
|
7
|
+
let(:version) { "1.5" }
|
8
8
|
|
9
9
|
context "deployment", :upstart => true do
|
10
10
|
it_behaves_like PleaseRun::Platform do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pleaserun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Sissel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cabin
|
@@ -56,14 +56,14 @@ dependencies:
|
|
56
56
|
name: mustache
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.99.8
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.99.8
|
69
69
|
- !ruby/object:Gem::Dependency
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: ohai
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '6.20'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '6.20'
|
97
83
|
description: pleaserun
|
98
84
|
email:
|
99
85
|
- jls@semicomplete.com
|