appbundler 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +17 -17
- data/.rspec +2 -2
- data/.travis.yml +12 -11
- data/Gemfile +4 -4
- data/LICENSE.txt +202 -202
- data/README.md +70 -70
- data/Rakefile +1 -1
- data/appbundler.gemspec +27 -27
- data/bin/appbundler +13 -13
- data/lib/appbundler.rb +4 -4
- data/lib/appbundler/app.rb +192 -188
- data/lib/appbundler/cli.rb +113 -98
- data/lib/appbundler/version.rb +3 -3
- data/spec/appbundler/app_spec.rb +421 -335
- data/spec/fixtures/appbundler-example-app/.bundle/config +2 -0
- data/spec/fixtures/appbundler-example-app/Gemfile +2 -2
- data/spec/fixtures/appbundler-example-app/Gemfile.lock.unix +135 -0
- data/spec/fixtures/appbundler-example-app/Gemfile.lock.windows +172 -0
- data/spec/fixtures/appbundler-example-app/README.md +3 -3
- data/spec/fixtures/appbundler-example-app/appbundler-example-app.gemspec +22 -22
- data/spec/fixtures/appbundler-example-app/bin/app-binary-1 +2 -2
- data/spec/fixtures/appbundler-example-app/bin/app-binary-2 +2 -2
- data/spec/fixtures/appbundler-example-app/lib/example_app.rb +3 -3
- data/spec/spec_helper.rb +9 -4
- metadata +8 -5
@@ -1,2 +1,2 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
gemspec
|
1
|
+
source "https://rubygems.org"
|
2
|
+
gemspec
|
@@ -0,0 +1,135 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
appbundler-example-app (1.0.0)
|
5
|
+
chef
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
builder (3.2.2)
|
11
|
+
chef (12.4.1)
|
12
|
+
chef-config (= 12.4.1)
|
13
|
+
chef-zero (~> 4.2, >= 4.2.2)
|
14
|
+
diff-lcs (~> 1.2, >= 1.2.4)
|
15
|
+
erubis (~> 2.7)
|
16
|
+
ffi-yajl (~> 2.2)
|
17
|
+
highline (~> 1.6, >= 1.6.9)
|
18
|
+
mixlib-authentication (~> 1.3)
|
19
|
+
mixlib-cli (~> 1.4)
|
20
|
+
mixlib-log (~> 1.3)
|
21
|
+
mixlib-shellout (>= 2.0.0.rc.0, < 3.0)
|
22
|
+
net-ssh (~> 2.6)
|
23
|
+
net-ssh-multi (~> 1.1)
|
24
|
+
ohai (~> 8.0)
|
25
|
+
plist (~> 3.1.0)
|
26
|
+
pry (~> 0.9)
|
27
|
+
rspec-core (~> 3.2)
|
28
|
+
rspec-expectations (~> 3.2)
|
29
|
+
rspec-mocks (~> 3.2)
|
30
|
+
rspec_junit_formatter (~> 0.2.0)
|
31
|
+
serverspec (~> 2.7)
|
32
|
+
specinfra (~> 2.10)
|
33
|
+
syslog-logger (~> 1.6)
|
34
|
+
chef-config (12.4.1)
|
35
|
+
mixlib-config (~> 2.0)
|
36
|
+
mixlib-shellout (~> 2.0)
|
37
|
+
chef-zero (4.3.0)
|
38
|
+
ffi-yajl (~> 2.2)
|
39
|
+
hashie (~> 2.0)
|
40
|
+
mixlib-log (~> 1.3)
|
41
|
+
rack
|
42
|
+
uuidtools (~> 2.1)
|
43
|
+
coderay (1.1.0)
|
44
|
+
diff-lcs (1.2.5)
|
45
|
+
erubis (2.7.0)
|
46
|
+
ffi (1.9.10)
|
47
|
+
ffi-yajl (2.2.2)
|
48
|
+
libyajl2 (~> 1.2)
|
49
|
+
hashie (2.1.2)
|
50
|
+
highline (1.7.3)
|
51
|
+
ipaddress (0.8.0)
|
52
|
+
libyajl2 (1.2.0)
|
53
|
+
method_source (0.8.2)
|
54
|
+
mime-types (2.6.1)
|
55
|
+
mixlib-authentication (1.3.0)
|
56
|
+
mixlib-log
|
57
|
+
mixlib-cli (1.5.0)
|
58
|
+
mixlib-config (2.2.1)
|
59
|
+
mixlib-log (1.6.0)
|
60
|
+
mixlib-shellout (2.2.0)
|
61
|
+
multi_json (1.11.2)
|
62
|
+
net-scp (1.2.1)
|
63
|
+
net-ssh (>= 2.6.5)
|
64
|
+
net-ssh (2.9.2)
|
65
|
+
net-ssh-gateway (1.2.0)
|
66
|
+
net-ssh (>= 2.6.5)
|
67
|
+
net-ssh-multi (1.2.1)
|
68
|
+
net-ssh (>= 2.6.5)
|
69
|
+
net-ssh-gateway (>= 1.2.0)
|
70
|
+
net-telnet (0.1.1)
|
71
|
+
ohai (8.5.1)
|
72
|
+
ffi (~> 1.9)
|
73
|
+
ffi-yajl (~> 2.2)
|
74
|
+
ipaddress
|
75
|
+
mime-types (~> 2.0)
|
76
|
+
mixlib-cli
|
77
|
+
mixlib-config (~> 2.0)
|
78
|
+
mixlib-log
|
79
|
+
mixlib-shellout (~> 2.0)
|
80
|
+
rake (~> 10.1)
|
81
|
+
systemu (~> 2.6.4)
|
82
|
+
wmi-lite (~> 1.0)
|
83
|
+
plist (3.1.0)
|
84
|
+
pry (0.9.12.6)
|
85
|
+
coderay (~> 1.0)
|
86
|
+
method_source (~> 0.8)
|
87
|
+
slop (~> 3.4)
|
88
|
+
rack (1.6.4)
|
89
|
+
rake (10.1.1)
|
90
|
+
rspec (3.3.0)
|
91
|
+
rspec-core (~> 3.3.0)
|
92
|
+
rspec-expectations (~> 3.3.0)
|
93
|
+
rspec-mocks (~> 3.3.0)
|
94
|
+
rspec-core (3.3.2)
|
95
|
+
rspec-support (~> 3.3.0)
|
96
|
+
rspec-expectations (3.3.1)
|
97
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
98
|
+
rspec-support (~> 3.3.0)
|
99
|
+
rspec-its (1.2.0)
|
100
|
+
rspec-core (>= 3.0.0)
|
101
|
+
rspec-expectations (>= 3.0.0)
|
102
|
+
rspec-mocks (3.3.2)
|
103
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
104
|
+
rspec-support (~> 3.3.0)
|
105
|
+
rspec-support (3.3.0)
|
106
|
+
rspec_junit_formatter (0.2.3)
|
107
|
+
builder (< 4)
|
108
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
109
|
+
serverspec (2.23.1)
|
110
|
+
multi_json
|
111
|
+
rspec (~> 3.0)
|
112
|
+
rspec-its
|
113
|
+
specinfra (~> 2.43)
|
114
|
+
sfl (2.2)
|
115
|
+
slop (3.4.7)
|
116
|
+
specinfra (2.43.3)
|
117
|
+
net-scp
|
118
|
+
net-ssh (~> 2.7)
|
119
|
+
net-telnet
|
120
|
+
sfl
|
121
|
+
syslog-logger (1.6.8)
|
122
|
+
systemu (2.6.5)
|
123
|
+
uuidtools (2.1.5)
|
124
|
+
wmi-lite (1.0.0)
|
125
|
+
|
126
|
+
PLATFORMS
|
127
|
+
ruby
|
128
|
+
|
129
|
+
DEPENDENCIES
|
130
|
+
appbundler-example-app!
|
131
|
+
pry
|
132
|
+
rake
|
133
|
+
|
134
|
+
BUNDLED WITH
|
135
|
+
1.10.6
|
@@ -0,0 +1,172 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
appbundler-example-app (1.0.0)
|
5
|
+
chef
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
builder (3.2.2)
|
11
|
+
chef (12.4.1-universal-mingw32)
|
12
|
+
chef-config (= 12.4.1)
|
13
|
+
chef-zero (~> 4.2, >= 4.2.2)
|
14
|
+
diff-lcs (~> 1.2, >= 1.2.4)
|
15
|
+
erubis (~> 2.7)
|
16
|
+
ffi (~> 1.9)
|
17
|
+
ffi-yajl (~> 2.2)
|
18
|
+
highline (~> 1.6, >= 1.6.9)
|
19
|
+
mixlib-authentication (~> 1.3)
|
20
|
+
mixlib-cli (~> 1.4)
|
21
|
+
mixlib-log (~> 1.3)
|
22
|
+
mixlib-shellout (>= 2.0.0.rc.0, < 3.0)
|
23
|
+
net-ssh (~> 2.6)
|
24
|
+
net-ssh-multi (~> 1.1)
|
25
|
+
ohai (~> 8.0)
|
26
|
+
plist (~> 3.1.0)
|
27
|
+
pry (~> 0.9)
|
28
|
+
rspec-core (~> 3.2)
|
29
|
+
rspec-expectations (~> 3.2)
|
30
|
+
rspec-mocks (~> 3.2)
|
31
|
+
rspec_junit_formatter (~> 0.2.0)
|
32
|
+
serverspec (~> 2.7)
|
33
|
+
specinfra (~> 2.10)
|
34
|
+
syslog-logger (~> 1.6)
|
35
|
+
win32-api (~> 1.5.3)
|
36
|
+
win32-dir (~> 0.5.0)
|
37
|
+
win32-event (~> 0.6.1)
|
38
|
+
win32-eventlog (~> 0.6.2)
|
39
|
+
win32-mmap (~> 0.4.1)
|
40
|
+
win32-mutex (~> 0.4.2)
|
41
|
+
win32-process (~> 0.7.5)
|
42
|
+
win32-service (= 0.8.6)
|
43
|
+
windows-api (~> 0.4.4)
|
44
|
+
windows-pr (~> 1.2.4)
|
45
|
+
wmi-lite (~> 1.0)
|
46
|
+
chef-config (12.4.1)
|
47
|
+
mixlib-config (~> 2.0)
|
48
|
+
mixlib-shellout (~> 2.0)
|
49
|
+
chef-zero (4.3.0)
|
50
|
+
ffi-yajl (~> 2.2)
|
51
|
+
hashie (~> 2.0)
|
52
|
+
mixlib-log (~> 1.3)
|
53
|
+
rack
|
54
|
+
uuidtools (~> 2.1)
|
55
|
+
coderay (1.1.0)
|
56
|
+
diff-lcs (1.2.5)
|
57
|
+
erubis (2.7.0)
|
58
|
+
ffi (1.9.10-x86-mingw32)
|
59
|
+
ffi-yajl (2.2.2)
|
60
|
+
libyajl2 (~> 1.2)
|
61
|
+
hashie (2.1.2)
|
62
|
+
highline (1.7.3)
|
63
|
+
ipaddress (0.8.0)
|
64
|
+
libyajl2 (1.2.0)
|
65
|
+
method_source (0.8.2)
|
66
|
+
mime-types (2.6.1)
|
67
|
+
mixlib-authentication (1.3.0)
|
68
|
+
mixlib-log
|
69
|
+
mixlib-cli (1.5.0)
|
70
|
+
mixlib-config (2.2.1)
|
71
|
+
mixlib-log (1.6.0)
|
72
|
+
mixlib-shellout (2.2.0-universal-mingw32)
|
73
|
+
win32-process (~> 0.7.5)
|
74
|
+
multi_json (1.11.2)
|
75
|
+
net-scp (1.2.1)
|
76
|
+
net-ssh (>= 2.6.5)
|
77
|
+
net-ssh (2.9.2)
|
78
|
+
net-ssh-gateway (1.2.0)
|
79
|
+
net-ssh (>= 2.6.5)
|
80
|
+
net-ssh-multi (1.2.1)
|
81
|
+
net-ssh (>= 2.6.5)
|
82
|
+
net-ssh-gateway (>= 1.2.0)
|
83
|
+
net-telnet (0.1.1)
|
84
|
+
ohai (8.5.1)
|
85
|
+
ffi (~> 1.9)
|
86
|
+
ffi-yajl (~> 2.2)
|
87
|
+
ipaddress
|
88
|
+
mime-types (~> 2.0)
|
89
|
+
mixlib-cli
|
90
|
+
mixlib-config (~> 2.0)
|
91
|
+
mixlib-log
|
92
|
+
mixlib-shellout (~> 2.0)
|
93
|
+
rake (~> 10.1)
|
94
|
+
systemu (~> 2.6.4)
|
95
|
+
wmi-lite (~> 1.0)
|
96
|
+
plist (3.1.0)
|
97
|
+
pry (0.9.12.6-x86-mingw32)
|
98
|
+
coderay (~> 1.0)
|
99
|
+
method_source (~> 0.8)
|
100
|
+
slop (~> 3.4)
|
101
|
+
win32console (~> 1.3)
|
102
|
+
rack (1.6.4)
|
103
|
+
rake (10.1.1)
|
104
|
+
rspec (3.3.0)
|
105
|
+
rspec-core (~> 3.3.0)
|
106
|
+
rspec-expectations (~> 3.3.0)
|
107
|
+
rspec-mocks (~> 3.3.0)
|
108
|
+
rspec-core (3.3.2)
|
109
|
+
rspec-support (~> 3.3.0)
|
110
|
+
rspec-expectations (3.3.1)
|
111
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
112
|
+
rspec-support (~> 3.3.0)
|
113
|
+
rspec-its (1.2.0)
|
114
|
+
rspec-core (>= 3.0.0)
|
115
|
+
rspec-expectations (>= 3.0.0)
|
116
|
+
rspec-mocks (3.3.2)
|
117
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
118
|
+
rspec-support (~> 3.3.0)
|
119
|
+
rspec-support (3.3.0)
|
120
|
+
rspec_junit_formatter (0.2.3)
|
121
|
+
builder (< 4)
|
122
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
123
|
+
serverspec (2.23.1)
|
124
|
+
multi_json
|
125
|
+
rspec (~> 3.0)
|
126
|
+
rspec-its
|
127
|
+
specinfra (~> 2.43)
|
128
|
+
sfl (2.2)
|
129
|
+
slop (3.4.7)
|
130
|
+
specinfra (2.43.3)
|
131
|
+
net-scp
|
132
|
+
net-ssh (~> 2.7)
|
133
|
+
net-telnet
|
134
|
+
sfl
|
135
|
+
syslog-logger (1.6.8)
|
136
|
+
systemu (2.6.5)
|
137
|
+
uuidtools (2.1.5)
|
138
|
+
win32-api (1.5.3-universal-mingw32)
|
139
|
+
win32-dir (0.5.0)
|
140
|
+
ffi (>= 1.0.0)
|
141
|
+
win32-event (0.6.1)
|
142
|
+
win32-ipc (>= 0.6.0)
|
143
|
+
win32-eventlog (0.6.3)
|
144
|
+
ffi
|
145
|
+
win32-ipc (0.6.6)
|
146
|
+
ffi
|
147
|
+
win32-mmap (0.4.1)
|
148
|
+
ffi
|
149
|
+
win32-mutex (0.4.2)
|
150
|
+
win32-ipc (>= 0.6.0)
|
151
|
+
win32-process (0.7.5)
|
152
|
+
ffi (>= 1.0.0)
|
153
|
+
win32-service (0.8.6)
|
154
|
+
ffi
|
155
|
+
win32console (1.3.2-x86-mingw32)
|
156
|
+
windows-api (0.4.4)
|
157
|
+
win32-api (>= 1.4.5)
|
158
|
+
windows-pr (1.2.4)
|
159
|
+
win32-api (>= 1.4.5)
|
160
|
+
windows-api (>= 0.4.0)
|
161
|
+
wmi-lite (1.0.0)
|
162
|
+
|
163
|
+
PLATFORMS
|
164
|
+
x86-mingw32
|
165
|
+
|
166
|
+
DEPENDENCIES
|
167
|
+
appbundler-example-app!
|
168
|
+
pry
|
169
|
+
rake
|
170
|
+
|
171
|
+
BUNDLED WITH
|
172
|
+
1.10.6
|
@@ -1,3 +1,3 @@
|
|
1
|
-
# Example App
|
2
|
-
|
3
|
-
This app is a test fixture. It has no use of its own.
|
1
|
+
# Example App
|
2
|
+
|
3
|
+
This app is a test fixture. It has no use of its own.
|
@@ -1,22 +1,22 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
Gem::Specification.new do |spec|
|
4
|
-
spec.name = "appbundler-example-app"
|
5
|
-
spec.version = "1.0.0"
|
6
|
-
spec.authors = ["danielsdeleo"]
|
7
|
-
spec.email = ["dan@opscode.com"]
|
8
|
-
spec.description = %q{test fixture app}
|
9
|
-
spec.summary = spec.description
|
10
|
-
spec.homepage = ""
|
11
|
-
spec.license = "Apache2"
|
12
|
-
|
13
|
-
spec.files = Dir.glob("{bin,lib,spec}/**/*").reject {|f| File.directory?(f) }
|
14
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
15
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
|
-
spec.require_paths = ["lib"]
|
17
|
-
|
18
|
-
spec.add_dependency "chef"
|
19
|
-
spec.add_development_dependency "rake"
|
20
|
-
spec.add_development_dependency "pry"
|
21
|
-
end
|
22
|
-
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "appbundler-example-app"
|
5
|
+
spec.version = "1.0.0"
|
6
|
+
spec.authors = ["danielsdeleo"]
|
7
|
+
spec.email = ["dan@opscode.com"]
|
8
|
+
spec.description = %q{test fixture app}
|
9
|
+
spec.summary = spec.description
|
10
|
+
spec.homepage = ""
|
11
|
+
spec.license = "Apache2"
|
12
|
+
|
13
|
+
spec.files = Dir.glob("{bin,lib,spec}/**/*").reject {|f| File.directory?(f) }
|
14
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
15
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
|
+
spec.require_paths = ["lib"]
|
17
|
+
|
18
|
+
spec.add_dependency "chef"
|
19
|
+
spec.add_development_dependency "rake"
|
20
|
+
spec.add_development_dependency "pry"
|
21
|
+
end
|
22
|
+
|
@@ -1,2 +1,2 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
puts "binary 1 ran"
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
puts "binary 1 ran"
|
@@ -1,2 +1,2 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
puts "binary 2 ran"
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
puts "binary 2 ran"
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module ExampleApp
|
2
|
-
IT_WORKS = "yes"
|
3
|
-
end
|
1
|
+
module ExampleApp
|
2
|
+
IT_WORKS = "yes"
|
3
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
def windows?
|
2
|
+
!!(RUBY_PLATFORM =~ /mswin|mingw|windows/)
|
3
|
+
end
|
4
|
+
|
5
|
+
RSpec.configure do |c|
|
6
|
+
c.filter_run :focus => true
|
7
|
+
c.run_all_when_everything_filtered = true
|
8
|
+
c.filter_run_excluding(not_supported_on_windows: true) if windows?
|
9
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appbundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- danielsdeleo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -103,8 +103,10 @@ files:
|
|
103
103
|
- lib/appbundler/cli.rb
|
104
104
|
- lib/appbundler/version.rb
|
105
105
|
- spec/appbundler/app_spec.rb
|
106
|
+
- spec/fixtures/appbundler-example-app/.bundle/config
|
106
107
|
- spec/fixtures/appbundler-example-app/Gemfile
|
107
|
-
- spec/fixtures/appbundler-example-app/Gemfile.lock
|
108
|
+
- spec/fixtures/appbundler-example-app/Gemfile.lock.unix
|
109
|
+
- spec/fixtures/appbundler-example-app/Gemfile.lock.windows
|
108
110
|
- spec/fixtures/appbundler-example-app/README.md
|
109
111
|
- spec/fixtures/appbundler-example-app/appbundler-example-app.gemspec
|
110
112
|
- spec/fixtures/appbundler-example-app/bin/app-binary-1
|
@@ -137,12 +139,13 @@ specification_version: 4
|
|
137
139
|
summary: Extracts a dependency solution from bundler's Gemfile.lock to speed gem activation
|
138
140
|
test_files:
|
139
141
|
- spec/appbundler/app_spec.rb
|
142
|
+
- spec/fixtures/appbundler-example-app/.bundle/config
|
140
143
|
- spec/fixtures/appbundler-example-app/Gemfile
|
141
|
-
- spec/fixtures/appbundler-example-app/Gemfile.lock
|
144
|
+
- spec/fixtures/appbundler-example-app/Gemfile.lock.unix
|
145
|
+
- spec/fixtures/appbundler-example-app/Gemfile.lock.windows
|
142
146
|
- spec/fixtures/appbundler-example-app/README.md
|
143
147
|
- spec/fixtures/appbundler-example-app/appbundler-example-app.gemspec
|
144
148
|
- spec/fixtures/appbundler-example-app/bin/app-binary-1
|
145
149
|
- spec/fixtures/appbundler-example-app/bin/app-binary-2
|
146
150
|
- spec/fixtures/appbundler-example-app/lib/example_app.rb
|
147
151
|
- spec/spec_helper.rb
|
148
|
-
has_rdoc:
|