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 +4 -4
- data/lib/specinfra/backend/cmd.rb +9 -2
- data/lib/specinfra/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32564189d385b3f5192b5c85eabdd0d2c7f9916a
|
4
|
+
data.tar.gz: 72eda6a37ec3f5f08a6db19dc281259d8fc17cfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/specinfra/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-scp
|