specinfra 2.57.0 → 2.57.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d24a1acbadc806d97bbda90ee8907c35e31ea19b
4
- data.tar.gz: b46a7ee86831215bea8b8f7dbb977ce512538cc2
3
+ metadata.gz: 32564189d385b3f5192b5c85eabdd0d2c7f9916a
4
+ data.tar.gz: 72eda6a37ec3f5f08a6db19dc281259d8fc17cfc
5
5
  SHA512:
6
- metadata.gz: e0b3e580f92c17869122842e8f9558215cbf140556a38f82d7a9b557cd20c9e6e3595e12fc60505fbcc930d166fb7788cc6e9b13e93757a31c782b6a0c3c6c57
7
- data.tar.gz: e4174827c25101980c269a523e34925f9d796d5fbfed29d758b33428dbb66b73ca0991c7c4454b77aceb6c8a85bdcba0157c01075dd834d38ba5d24480237955
6
+ metadata.gz: 988d595530b9f8bf62691be6a65b6ced6b762e9bdd12c38237b584b56a8b148a31967429e069e563b773dcbd3a59b3237ddf6400c24bb60e6a1212d546135923
7
+ data.tar.gz: 9e297e7e1b294d67c5d1659df65bc09b1de1dfdd473a0209351d475a754b60c72adcbe4c945c7302a9920b7163aa8ed585674790efbb4ebc304fe937768f5fbb
@@ -6,12 +6,19 @@ module Specinfra
6
6
  include PowerShell::ScriptHelper
7
7
 
8
8
  def os_info
9
- { :family => 'windows', :release => nil, :arch => nil }
9
+ { :family => 'windows', :release => nil, :arch => nil, :cygwin => `echo $0`.include?("sh") }
10
10
  end
11
11
 
12
12
  def run_command(cmd, opts={})
13
13
  script = create_script(cmd)
14
- result = execute_script %Q{#{powershell} -encodedCommand #{encode_script(script)}}
14
+ psh = powershell
15
+ if os_info[:cygwin]
16
+ # convert c:\windows... to /cygdrive/c/windows...
17
+ psh.gsub!("\\", "/")
18
+ psh.sub!(":", "")
19
+ psh = psh.prepend("/cygdrive/")
20
+ end
21
+ result = execute_script %Q{#{psh} -encodedCommand #{encode_script(script)}}
15
22
 
16
23
  if @example
17
24
  @example.metadata[:command] = script
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.57.0"
2
+ VERSION = "2.57.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.57.0
4
+ version: 2.57.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-25 00:00:00.000000000 Z
11
+ date: 2016-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp