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
12 13 14 |
# File 'lib/kamal/sshkit_with_ext.rb', line 12 def capture_with_debug(*args, **kwargs) capture(*args, **kwargs, verbosity: Logger::DEBUG) end |
#capture_with_info(*args, **kwargs) ⇒ Object
8 9 10 |
# File 'lib/kamal/sshkit_with_ext.rb', line 8 def capture_with_info(*args, **kwargs) capture(*args, **kwargs, verbosity: Logger::INFO) end |
#capture_with_pretty_json(*args, **kwargs) ⇒ Object
16 17 18 |
# File 'lib/kamal/sshkit_with_ext.rb', line 16 def capture_with_pretty_json(*args, **kwargs) JSON.pretty_generate(JSON.parse(capture(*args, **kwargs))) end |
#puts_by_host(host, output, type: "App") ⇒ Object
20 21 22 |
# File 'lib/kamal/sshkit_with_ext.rb', line 20 def puts_by_host(host, output, type: "App") puts "#{type} Host: #{host}\n#{output}\n\n" end |