lachlan-sprinkle 0.0.4 → 0.0.5
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.
- data/Manifest.txt +1 -0
- data/lib/sprinkle/installers/script.rb +1 -1
- data/lib/sprinkle/verifiers/directory.rb +1 -1
- data/lib/sprinkle/verifiers/file.rb +2 -2
- data/lib/sprinkle/verifiers/process.rb +1 -1
- data/lib/sprinkle/verifiers/ruby.rb +1 -1
- data/lib/sprinkle/version.rb +1 -1
- data/sprinkle.gemspec +1 -1
- metadata +1 -1
data/Manifest.txt
CHANGED
@@ -25,7 +25,7 @@ module Sprinkle
|
|
25
25
|
commands << "pushd \"#{@script_path}\"" if @script_path
|
26
26
|
|
27
27
|
command = @script_file
|
28
|
-
command
|
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
|
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
|
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
|
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
|
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
|
23
|
+
command << ' > NUL 2>&1' unless logger.debug?
|
24
24
|
else
|
25
25
|
command = "sudo gem list | grep -e '^#{name} (.*#{version}.*)$'"
|
26
26
|
end
|
data/lib/sprinkle/version.rb
CHANGED
data/sprinkle.gemspec
CHANGED