maestro_shell 0.0.13 → 1.0.0

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: add94bfda2efcc465922fdd8362802d90c2a69bd
4
- data.tar.gz: 5307a7c23ffd113b46050ac1736c15e0e4625188
3
+ metadata.gz: 81ea12be6d81e61ac697c7feb4174cd59508165d
4
+ data.tar.gz: b2fe0e18cffd7d741c55fe8e0829fd34d9889da5
5
5
  SHA512:
6
- metadata.gz: bdedd12799acc1ccd9191f6419df3581956c1d61ba1f5518277f35a09a04da7f52174605495a38f519fd091bb8c314e3c353b3e100a76f1291c07a30e74c6093
7
- data.tar.gz: affb611f2827f41a06873ff1c8458dea6413d787c9eafdd4d991d7258b3e205e2d57c8da533d64496551a0ade1cd5116eb58c773ae65b12ec96197f8431768b0
6
+ metadata.gz: 1434ccb47a6b53f432971c0b7e25abcd5785ac8e8009fd055a125cc3ec9dce6fba4d27ddeb50954fd4bb63705964bba685d506617f5bc602ac70f34b40fbad6f
7
+ data.tar.gz: 6b7787aea4e01561e19b701826d6d6ea2b9d77146bae5d9a3c952f6460d3e3c1128240e402dca4b63ee9bad060b30796f51fc3b912373db02b8fbf38083499c3
@@ -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}"
@@ -1,7 +1,7 @@
1
1
  module Maestro
2
2
  module Util
3
3
  class Shell
4
- VERSION = '0.0.13'
4
+ VERSION = '1.0.0'
5
5
  end
6
6
  end
7
7
  end
@@ -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', '>= 2.13.0'
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.13
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-04-07 00:00:00.000000000 Z
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.0
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.0
66
+ version: '2.13'
67
67
  prerelease: false
68
68
  type: :development
69
69
  - !ruby/object:Gem::Dependency