capistrano-simple-formatter 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +8 -0
- data/lib/capistrano-simple-formatter/version.rb +1 -1
- data/lib/sshkit/formatter/simple.rb +1 -5
- metadata +1 -1
data/README.md
CHANGED
@@ -28,6 +28,14 @@ Set the Capistrano `format` to `:simple`:
|
|
28
28
|
set :format, :simple
|
29
29
|
```
|
30
30
|
|
31
|
+
Adjust the log level as needed:
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
# deploy.rb
|
35
|
+
|
36
|
+
set :log_level, :fatal
|
37
|
+
```
|
38
|
+
|
31
39
|
Then, within any `task` block you can access the formatter through `SSHKit.config.output`, or just `output` within an `on` block.
|
32
40
|
|
33
41
|
### Examples
|
@@ -4,7 +4,7 @@ require 'sshkit'
|
|
4
4
|
|
5
5
|
module SSHKit
|
6
6
|
module Formatter
|
7
|
-
class Simple <
|
7
|
+
class Simple < Pretty
|
8
8
|
def initialize(original_output)
|
9
9
|
super(original_output)
|
10
10
|
|
@@ -59,10 +59,6 @@ module SSHKit
|
|
59
59
|
def success(message = '✔')
|
60
60
|
result(message.green)
|
61
61
|
end
|
62
|
-
|
63
|
-
def write(message) end
|
64
|
-
|
65
|
-
alias :<< :write
|
66
62
|
end
|
67
63
|
end
|
68
64
|
end
|