maestro_shell 0.0.13 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/util/shell.rb +5 -1
- data/lib/util/version.rb +1 -1
- data/maestro_shell.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81ea12be6d81e61ac697c7feb4174cd59508165d
|
4
|
+
data.tar.gz: b2fe0e18cffd7d741c55fe8e0829fd34d9889da5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1434ccb47a6b53f432971c0b7e25abcd5785ac8e8009fd055a125cc3ec9dce6fba4d27ddeb50954fd4bb63705964bba685d506617f5bc602ac70f34b40fbad6f
|
7
|
+
data.tar.gz: 6b7787aea4e01561e19b701826d6d6ea2b9d77146bae5d9a3c952f6460d3e3c1128240e402dca4b63ee9bad060b30796f51fc3b912373db02b8fbf38083499c3
|
data/lib/util/shell.rb
CHANGED
@@ -50,6 +50,10 @@ module Maestro
|
|
50
50
|
|
51
51
|
@script_file = Tempfile.new(["script", SCRIPT_EXTENSION])
|
52
52
|
@output_file = Tempfile.new(['output','log'])
|
53
|
+
|
54
|
+
# Add @echo off in windows if the script doesn't already use @echo
|
55
|
+
pre = (IS_WINDOWS and !contents.include?("@echo ")) ? "@echo off\n" : ""
|
56
|
+
|
53
57
|
# Run any commands in the default system Ruby environment, rather
|
54
58
|
# than the one the agent is currently using (which within the wrapper,
|
55
59
|
# sets clean values for these to avoid RVM or System gems that might
|
@@ -57,7 +61,7 @@ module Maestro
|
|
57
61
|
# establish that itself (as the rake task does through rvm if chosen)
|
58
62
|
# Add clear env variable commands to head of script, since we don't necessarily have access to env here (depending on
|
59
63
|
# version of ruby/bugs)
|
60
|
-
contents = "#{Shell.unset_env_variable('GEM_HOME')}\n#{Shell.unset_env_variable('GEM_PATH')}\n#{contents}"
|
64
|
+
contents = "#{pre}#{Shell.unset_env_variable('GEM_HOME')}\n#{Shell.unset_env_variable('GEM_PATH')}\n#{contents}"
|
61
65
|
@script_file.write(contents)
|
62
66
|
@script_file.close
|
63
67
|
Maestro.log.debug "Writing Script File To #{@script_file.path}"
|
data/lib/util/version.rb
CHANGED
data/maestro_shell.gemspec
CHANGED
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
|
|
22
22
|
|
23
23
|
spec.add_development_dependency "mocha", '>=0.10.0'
|
24
24
|
spec.add_development_dependency 'rake'
|
25
|
-
spec.add_development_dependency 'rspec', '
|
25
|
+
spec.add_development_dependency 'rspec', '~> 2.13'
|
26
26
|
spec.add_development_dependency 'maestro_plugin', '>=0.0.17' # for logging <<- who made this dep on maestro_plugin... you will be destroyed!
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maestro_shell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Doug Henderson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: childprocess
|
@@ -56,14 +56,14 @@ dependencies:
|
|
56
56
|
name: rspec
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.13
|
61
|
+
version: '2.13'
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- -
|
64
|
+
- - ~>
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: 2.13
|
66
|
+
version: '2.13'
|
67
67
|
prerelease: false
|
68
68
|
type: :development
|
69
69
|
- !ruby/object:Gem::Dependency
|