beaker 2.4.0 → 2.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/HISTORY.md +25 -2
- data/lib/beaker/host.rb +1 -1
- data/lib/beaker/version.rb +1 -1
- data/spec/beaker/host_spec.rb +38 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzE2NjM0MmU0ZTNkNzk5ZDNlYWEyNzYyZjJlYmMzMDgyNTc5ZjM1MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDJiOGRjNjRmNWZjYjM4MTU3NWNiNDgwZTIwZWZiNjEzNTcyZDg1Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTk5MGM2N2U3MTk5NGZmZjgwNmQyY2JiYjNhZWRiNWFkNTgxOTEwMDk0MGYz
|
10
|
+
NTRjZjNmZDg4ZTgyNGE1YzVjNmFjZjcyYzlhYmE2NGQ3OTliNGNhNWI1OWQ2
|
11
|
+
N2M3YjI2MWQ4NjdlMjRlNzY5MWQyMjI2MzY2YjZkYzNmZmQyMzQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODMyNTM2MjUzNjE5YTQ2MWNjMTRhNzM1YjdiYjUwYjhmYzc5ZWI4MGU3N2Ri
|
14
|
+
YTE0YjNjZWI1NDczYzBjMDVhYmY2MGYzOWVjM2U2MmU1ZDBkMTA3MjNiZTcy
|
15
|
+
Mzg3MzA1ZTQwYWM5ZjhmNDBhZTEwNTFmZWRmZGFmODAwZTgyYzA=
|
data/HISTORY.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# default - History
|
2
2
|
## Tags
|
3
|
-
* [LATEST - 13 Feb, 2015 (
|
3
|
+
* [LATEST - 13 Feb, 2015 (c3cffad8)](#LATEST)
|
4
|
+
* [beaker2.4.0 - 13 Feb, 2015 (bc5a6676)](#beaker2.4.0)
|
4
5
|
* [beaker2.3.0 - 29 Jan, 2015 (3d185da0)](#beaker2.3.0)
|
5
6
|
* [beaker2.2.0 - 8 Jan, 2015 (cba5f7ed)](#beaker2.2.0)
|
6
7
|
* [beaker2.1.0 - 17 Dec, 2014 (ec089b1a)](#beaker2.1.0)
|
@@ -69,7 +70,29 @@
|
|
69
70
|
* [pe1.2 - 6 Sep, 2011 (ba3dadd2)](#pe1.2)
|
70
71
|
|
71
72
|
## Details
|
72
|
-
### <a name = "LATEST">LATEST - 13 Feb, 2015 (
|
73
|
+
### <a name = "LATEST">LATEST - 13 Feb, 2015 (c3cffad8)
|
74
|
+
|
75
|
+
* (GEM) update beaker version to 2.4.1 (c3cffad8)
|
76
|
+
|
77
|
+
* Merge pull request #684 from anodelman/maint (7ff40a47)
|
78
|
+
|
79
|
+
|
80
|
+
```
|
81
|
+
Merge pull request #684 from anodelman/maint
|
82
|
+
|
83
|
+
(QENG-1834) Regression in Beaker 2.4.0 using do_scp_to
|
84
|
+
```
|
85
|
+
* (QENG-1834) Regression in Beaker 2.4.0 using do_scp_to (2b8b6f74)
|
86
|
+
|
87
|
+
|
88
|
+
```
|
89
|
+
(QENG-1834) Regression in Beaker 2.4.0 using do_scp_to
|
90
|
+
|
91
|
+
- repair bug and add spec test coverage
|
92
|
+
```
|
93
|
+
### <a name = "beaker2.4.0">beaker2.4.0 - 13 Feb, 2015 (bc5a6676)
|
94
|
+
|
95
|
+
* (HISTORY) update beaker history for gem release 2.4.0 (bc5a6676)
|
73
96
|
|
74
97
|
* (GEM) update beaker version to 2.4.0 (75d618b8)
|
75
98
|
|
data/lib/beaker/host.rb
CHANGED
@@ -299,7 +299,7 @@ module Beaker
|
|
299
299
|
# @param [String] dir The directory structure to create on the host
|
300
300
|
# @return [Boolean] True, if directory construction succeeded, otherwise False
|
301
301
|
def mkdir_p dir
|
302
|
-
if
|
302
|
+
if self['is_cygwin'].nil? or self['is_cygwin'] == true
|
303
303
|
cmd = "mkdir -p #{dir}"
|
304
304
|
else
|
305
305
|
cmd = "if not exist #{dir.gsub!('/','\\')} (md #{dir.gsub!('/','\\')})"
|
data/lib/beaker/version.rb
CHANGED
data/spec/beaker/host_spec.rb
CHANGED
@@ -325,6 +325,44 @@ module Beaker
|
|
325
325
|
end
|
326
326
|
end
|
327
327
|
|
328
|
+
describe "#mkdir_p" do
|
329
|
+
|
330
|
+
it "does the right thing on a bash host, identified as is_cygwin=true" do
|
331
|
+
@options = {:is_cygwin => true}
|
332
|
+
result = double
|
333
|
+
allow( result ).to receive( :exit_code ).and_return( 0 )
|
334
|
+
allow( host ).to receive( :exec ).and_return( result )
|
335
|
+
|
336
|
+
expect( Beaker::Command ).to receive(:new).with("mkdir -p test/test/test")
|
337
|
+
expect( host.mkdir_p('test/test/test') ).to be == true
|
338
|
+
|
339
|
+
end
|
340
|
+
|
341
|
+
it "does the right thing on a bash host, identified as is_cygwin=nil" do
|
342
|
+
@options = {:is_cygwin => nil}
|
343
|
+
result = double
|
344
|
+
allow( result ).to receive( :exit_code ).and_return( 0 )
|
345
|
+
allow( host ).to receive( :exec ).and_return( result )
|
346
|
+
|
347
|
+
expect( Beaker::Command ).to receive(:new).with("mkdir -p test/test/test")
|
348
|
+
expect( host.mkdir_p('test/test/test') ).to be == true
|
349
|
+
|
350
|
+
end
|
351
|
+
|
352
|
+
it "does the right thing on a non-bash host, identified as is_cygwin=false (powershell)" do
|
353
|
+
@options = {:is_cygwin => false}
|
354
|
+
result = double
|
355
|
+
allow( result ).to receive( :exit_code ).and_return( 0 )
|
356
|
+
allow( host ).to receive( :exec ).and_return( result )
|
357
|
+
|
358
|
+
expect( Beaker::Command ).to receive(:new).with("if not exist test\\test\\test (md )")
|
359
|
+
expect( host.mkdir_p('test/test/test') ).to be == true
|
360
|
+
|
361
|
+
end
|
362
|
+
|
363
|
+
|
364
|
+
end
|
365
|
+
|
328
366
|
context 'do_scp_to' do
|
329
367
|
# it takes a location and a destination
|
330
368
|
# it basically proxies that to the connection object
|