lachlan-sprinkle 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest.txt CHANGED
@@ -31,6 +31,7 @@ lib/sprinkle.rb
31
31
  lib/sprinkle/actors/actors.rb
32
32
  lib/sprinkle/actors/capistrano.rb
33
33
  lib/sprinkle/actors/local.rb
34
+ lib/sprinkle/actors/psexec.rb
34
35
  lib/sprinkle/actors/ssh.rb
35
36
  lib/sprinkle/actors/vlad.rb
36
37
  lib/sprinkle/configurable.rb
@@ -25,7 +25,7 @@ module Sprinkle
25
25
  commands << "pushd \"#{@script_path}\"" if @script_path
26
26
 
27
27
  command = @script_file
28
- command += ' > NUL' if RUBY_PLATFORM =~ /win32/ and not logger.debug?
28
+ command << ' > NUL' if RUBY_PLATFORM =~ /win32/ and not logger.debug?
29
29
  commands << command
30
30
 
31
31
  commands << "popd" if @script_path
@@ -12,7 +12,7 @@ module Sprinkle
12
12
  if RUBY_PLATFORM =~ /win32/
13
13
  dir += "\\" unless dir[-1,1] == "\\"
14
14
  command = "if exist \"#{dir}\" (exit 0) else (exit 1)"
15
- command += ' > NUL 2>&1' unless logger.debug?
15
+ command << ' > NUL 2>&1' unless logger.debug?
16
16
  else
17
17
  command = "test -d #{dir}"
18
18
  end
@@ -17,7 +17,7 @@ module Sprinkle
17
17
  def has_file(path)
18
18
  if RUBY_PLATFORM =~ /win32/
19
19
  command = "if exist \"#{path}\" (if not exist \"#{path}\\\" (exit 0) else (exit 1)) else (exit 1)"
20
- command += ' > NUL 2>&1' unless logger.debug?
20
+ command << ' > NUL 2>&1' unless logger.debug?
21
21
  else
22
22
  command = "test -f #{path}"
23
23
  end
@@ -27,7 +27,7 @@ module Sprinkle
27
27
  def file_contains(path, text)
28
28
  if RUBY_PLATFORM =~ /win32/
29
29
  command = "findstr /m /c:\"#{text}\" \"#{path}\""
30
- command += ' > NUL 2>&1' unless logger.debug?
30
+ command << ' > NUL 2>&1' unless logger.debug?
31
31
  else
32
32
  command = "grep '#{text}' #{path}"
33
33
  end
@@ -16,7 +16,7 @@ module Sprinkle
16
16
  def has_process(process)
17
17
  if RUBY_PLATFORM =~ /win32/
18
18
  command = "tasklist /fo table /nh | findstr /c:\"#{process}\""
19
- command += ' > NUL 2>&1' unless logger.debug?
19
+ command << ' > NUL 2>&1' unless logger.debug?
20
20
  else
21
21
  command = "ps aux | grep '#{process}' | grep -v grep"
22
22
  end
@@ -20,7 +20,7 @@ module Sprinkle
20
20
  version = version.nil? ? '' : version.gsub('.', '\.')
21
21
  if RUBY_PLATFORM =~ /win32/
22
22
  command = "gem list | findstr /r /c:\"^#{name} (.*#{version}.*)$\""
23
- command += ' > NUL 2>&1' unless logger.debug?
23
+ command << ' > NUL 2>&1' unless logger.debug?
24
24
  else
25
25
  command = "sudo gem list | grep -e '^#{name} (.*#{version}.*)$'"
26
26
  end
@@ -2,7 +2,7 @@ module Sprinkle #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/sprinkle.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{sprinkle}
3
- s.version = "0.0.4"
3
+ s.version = "0.0.5"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Marcus Crafter", "Mitchell Hashimoto"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lachlan-sprinkle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Crafter