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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Yjc5M2YyNThjNmVmZWY0MWFhMDc1YTY3Yzc2NjBkZTJjN2Q2NWMxNA==
4
+ MzE2NjM0MmU0ZTNkNzk5ZDNlYWEyNzYyZjJlYmMzMDgyNTc5ZjM1MA==
5
5
  data.tar.gz: !binary |-
6
- YWQ5ZTlmMzcwNjBkYmQyYTI0NWEwODU0ZmI4MzBhNDhiMDk5MjBkMQ==
6
+ NDJiOGRjNjRmNWZjYjM4MTU3NWNiNDgwZTIwZWZiNjEzNTcyZDg1Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2Q1NDllNzQ4Y2NjOTRjMjljZTU4M2JhNDgxZDVmNDI0MjE4ZTljNzMyNmFi
10
- OTMwMTFiNTY1MzhlMGViYzA0ZWIzMGI3YWM3ZTY3NDk4NjdjMDhhMzgzMTkx
11
- NzdkMTAxY2ViNWE3N2Y5NTliZDcxZTdmMmE1Zjk0Njk4OTk0ZmU=
9
+ YTk5MGM2N2U3MTk5NGZmZjgwNmQyY2JiYjNhZWRiNWFkNTgxOTEwMDk0MGYz
10
+ NTRjZjNmZDg4ZTgyNGE1YzVjNmFjZjcyYzlhYmE2NGQ3OTliNGNhNWI1OWQ2
11
+ N2M3YjI2MWQ4NjdlMjRlNzY5MWQyMjI2MzY2YjZkYzNmZmQyMzQ=
12
12
  data.tar.gz: !binary |-
13
- MmVmYTM0NmM1ZjNiNDAyZTM2NTEyNTY2NjA4YjE0OGQ4YWIwODAwMTI4NTQ2
14
- NTcwMjMzNWY1NDVhODA5ZjJlNzU5ZDlmNWFkMzUxZTc1YTBhODkxOTFlM2Fi
15
- N2MzNGU1OTc1OGJkNDUyNWEyYTA0OWZkN2NkMjMxNWViM2MwZDY=
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 (75d618b8)](#LATEST)
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 (75d618b8)
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 host['is_cygwin'].nil? or host['is_cygwin'] == true
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!('/','\\')})"
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '2.4.0'
3
+ STRING = '2.4.1'
4
4
  end
5
5
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs