beaker 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/beaker/dsl/install_utils.rb +5 -1
- data/lib/beaker/version.rb +1 -1
- data/spec/beaker/dsl/install_utils_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWMwOGVmNTJlZTJiMTIzMjc1YmQxOWEyNzhlNmIwMmY1YmQ3ZDBjNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWI3MmJkNzI2NWZhZDlkMDdlY2E4OGZlYTE3MTY2NDY2Yzk4YzZjNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDk0YmJiMTE2YzQ4NjYwZDNmNDAwM2Q4MTNlYjc3YzM5ZDY1MDA0YzBlN2Mx
|
10
|
+
Mjc4ZTQzNGVjYTkxOGI5MDkxNTAzOTAxMDk0MWE3YTM2YWQyYTE1Y2Q0NTFl
|
11
|
+
ZDNlMmQ3MmMwOTQ4ZjcxZDcxOTJlOTAwZjM2MTc5MWY3NjNkZjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTkyYzUzMGYyNTRkYjRmZWQ3OGY0YzRiMzFhMDMyM2QzMDdiNDAyOTJiYzRi
|
14
|
+
NWY5YTY2YTM1NTYxMTU4NTZmOGQ1ZGE2M2IwOGYxOWY0OWQwNTg3NDY4OGVh
|
15
|
+
NDcyYzEzMTAxMjk4NjliNDZiNmE2OThmYWViM2MxZjM1NTM2MGY=
|
@@ -223,13 +223,17 @@ module Beaker
|
|
223
223
|
end
|
224
224
|
gunzip = ""
|
225
225
|
untar = ""
|
226
|
+
save_locally = ""
|
226
227
|
if extension =~ /gz/
|
227
228
|
gunzip = "| gunzip"
|
228
229
|
end
|
229
230
|
if extension =~ /tar/
|
230
231
|
untar = "| tar -xvf -"
|
231
232
|
end
|
232
|
-
|
233
|
+
if extension =~ /msi/
|
234
|
+
save_locally = "-O"
|
235
|
+
end
|
236
|
+
on host, "cd #{host['working_dir']}; curl #{save_locally} #{path}/#{filename}#{extension} #{gunzip} #{untar}"
|
233
237
|
end
|
234
238
|
end
|
235
239
|
end
|
data/lib/beaker/version.rb
CHANGED
@@ -166,7 +166,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
166
166
|
path = unixhost['pe_dir']
|
167
167
|
filename = "#{ unixhost['dist'] }"
|
168
168
|
extension = '.tar'
|
169
|
-
subject.should_receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; curl
|
169
|
+
subject.should_receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; curl #{ path }/#{ filename }#{ extension } | tar -xvf -" ).once
|
170
170
|
subject.fetch_puppet( [unixhost], {} )
|
171
171
|
end
|
172
172
|
|
@@ -179,7 +179,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
179
179
|
path = unixhost['pe_dir']
|
180
180
|
filename = "#{ unixhost['dist'] }"
|
181
181
|
extension = '.tar.gz'
|
182
|
-
subject.should_receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; curl
|
182
|
+
subject.should_receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; curl #{ path }/#{ filename }#{ extension } | gunzip | tar -xvf -" ).once
|
183
183
|
subject.fetch_puppet( [unixhost], {} )
|
184
184
|
end
|
185
185
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|