obbistrano 1.1.91 → 1.1.92

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 pretty_errors
31
- if !$pretty_errors_defined
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{obbistrano}
5
- s.version = "1.1.91"
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=
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 91
9
- version: 1.1.91
8
+ - 92
9
+ version: 1.1.92
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ross Riley