Class: SSHKit::Backend::Abstract
- Inherits:
-
Object
- Object
- SSHKit::Backend::Abstract
- Includes:
- CommandEnvMerge
- Defined in:
- lib/mrsk/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
11 12 13 |
# File 'lib/mrsk/sshkit_with_ext.rb', line 11 def capture_with_debug(*args, **kwargs) capture(*args, **kwargs, verbosity: Logger::DEBUG) end |
#capture_with_info(*args, **kwargs) ⇒ Object
7 8 9 |
# File 'lib/mrsk/sshkit_with_ext.rb', line 7 def capture_with_info(*args, **kwargs) capture(*args, **kwargs, verbosity: Logger::INFO) end |
#capture_with_pretty_json(*args, **kwargs) ⇒ Object
15 16 17 |
# File 'lib/mrsk/sshkit_with_ext.rb', line 15 def capture_with_pretty_json(*args, **kwargs) JSON.pretty_generate(JSON.parse(capture(*args, **kwargs))) end |
#puts_by_host(host, output, type: "App") ⇒ Object
19 20 21 |
# File 'lib/mrsk/sshkit_with_ext.rb', line 19 def puts_by_host(host, output, type: "App") puts "#{type} Host: #{host}\n#{output}\n\n" end |