Bootleg.UI (bootleg v0.13.0) View Source

Functions for capturing application and server output and filtering against a configured verbosity level.

Link to this section Summary

Functions

Convenience methods

Get configured output coloring enabled Defaults to true

Prints a message and prompts the user for input. Input will be consumed until Enter is pressed.

Simple wrapper around IO.puts

Allow specifying output verbosity level

Output an impending download operation.

Individually handle output tuple.

Convenience function when wanting to output as if we'd received something from a particular host, e.g. git+ssh output.

Output a command destined for a single SSHKit host.

Output an impending upload operation.

Get configured output verbosity and sanitize it for our uses. Defaults to :info

Prints a message and asks the user if they want to proceed. The user must press Enter or type one of "y", "yes", "Y", "YES" or "Yes".

Link to this section Functions

Link to this function

debug(output, setting \\ nil)

View Source

Convenience methods

Link to this function

error(output, setting \\ nil)

View Source
Link to this function

info(output, setting \\ nil)

View Source

Get configured output coloring enabled Defaults to true

Prints a message and prompts the user for input. Input will be consumed until Enter is pressed.

Simple wrapper around IO.puts

Link to this function

puts(level, output, setting \\ nil)

View Source

Allow specifying output verbosity level

Link to this function

puts_download(context, remote_path, local_path)

View Source

Output an impending download operation.

Individually handle output tuple.

Link to this function

puts_recv(context, output)

View Source

Convenience function when wanting to output as if we'd received something from a particular host, e.g. git+ssh output.

Link to this function

puts_send(context, command)

View Source

Output a command destined for a single SSHKit host.

Link to this function

puts_upload(context, local_path, remote_path)

View Source

Output an impending upload operation.

Link to this function

verbosity(setting \\ nil)

View Source

Get configured output verbosity and sanitize it for our uses. Defaults to :info

Link to this function

warn(output, setting \\ nil)

View Source

Prints a message and asks the user if they want to proceed. The user must press Enter or type one of "y", "yes", "Y", "YES" or "Yes".