obbistrano 1.1.91 → 1.1.92
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/lib/obbistrano_tasks.rb +4 -16
- data/obbistrano.gemspec +1 -1
- metadata +2 -2
data/lib/obbistrano_tasks.rb
CHANGED
@@ -11,10 +11,9 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
11
11
|
|
12
12
|
def pretty_print(msg)
|
13
13
|
if logger.level == Capistrano::Logger::IMPORTANT
|
14
|
-
pretty_errors
|
15
14
|
msg = msg.slice(0, 57)
|
16
15
|
msg << '.' * (60 - msg.size)
|
17
|
-
print msg
|
16
|
+
print msg.red
|
18
17
|
else
|
19
18
|
puts msg.green
|
20
19
|
end
|
@@ -24,24 +23,13 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
24
23
|
if logger.level == Capistrano::Logger::IMPORTANT && !$error
|
25
24
|
puts '✔'.green
|
26
25
|
end
|
27
|
-
$error = false
|
28
26
|
end
|
29
27
|
|
30
|
-
def
|
31
|
-
|
32
|
-
$pretty_errors_defined = true
|
33
|
-
|
34
|
-
class << $stderr
|
35
|
-
alias _write write
|
36
|
-
|
37
|
-
def write(s)
|
38
|
-
_write(s.red)
|
39
|
-
$error = true
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
28
|
+
def puts_fail
|
29
|
+
puts '✘'.red
|
43
30
|
end
|
44
31
|
|
32
|
+
|
45
33
|
def remote_file_exists?(full_path)
|
46
34
|
'true' == capture("if [ -e #{full_path} ]; then echo 'true'; fi").strip
|
47
35
|
end
|
data/obbistrano.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{obbistrano}
|
5
|
-
s.version = "1.1.
|
5
|
+
s.version = "1.1.92"
|
6
6
|
s.authors = ["Ross Riley", "One Black Bear"]
|
7
7
|
s.date = Time.now
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|