Class: SSHKit::Backend::Abstract
- Inherits:
-
Object
- Object
- SSHKit::Backend::Abstract
- Includes:
- CommandEnvMerge
- Defined in:
- lib/kamal/sshkit_with_ext.rb
Defined Under Namespace
Modules: CommandEnvMerge
Instance Method Summary collapse
- #capture_with_debug(*args, **kwargs) ⇒ Object
- #capture_with_info(*args, **kwargs) ⇒ Object
- #capture_with_pretty_json(*args, **kwargs) ⇒ Object
- #puts_by_host(host, output, type: "App") ⇒ Object
Instance Method Details
#capture_with_debug(*args, **kwargs) ⇒ Object
13 14 15 |
# File 'lib/kamal/sshkit_with_ext.rb', line 13 def capture_with_debug(*args, **kwargs) capture(*args, **kwargs, verbosity: Logger::DEBUG) end |
#capture_with_info(*args, **kwargs) ⇒ Object
9 10 11 |
# File 'lib/kamal/sshkit_with_ext.rb', line 9 def capture_with_info(*args, **kwargs) capture(*args, **kwargs, verbosity: Logger::INFO) end |
#capture_with_pretty_json(*args, **kwargs) ⇒ Object
17 18 19 |
# File 'lib/kamal/sshkit_with_ext.rb', line 17 def capture_with_pretty_json(*args, **kwargs) JSON.pretty_generate(JSON.parse(capture(*args, **kwargs))) end |
#puts_by_host(host, output, type: "App") ⇒ Object
21 22 23 |
# File 'lib/kamal/sshkit_with_ext.rb', line 21 def puts_by_host(host, output, type: "App") puts "#{type} Host: #{host}\n#{output}\n\n" end |