Class: Omnizip::Commands::ListCommand
- Inherits:
-
Object
- Object
- Omnizip::Commands::ListCommand
- Defined in:
- lib/omnizip/commands/list_command.rb
Overview
Command to list available compression algorithms.
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ListCommand
constructor
Initialize list command with options.
-
#run ⇒ void
Execute the list command.
Constructor Details
#initialize(options = {}) ⇒ ListCommand
Initialize list command with options.
28 29 30 |
# File 'lib/omnizip/commands/list_command.rb', line 28 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
23 24 25 |
# File 'lib/omnizip/commands/list_command.rb', line 23 def @options end |
Instance Method Details
#run ⇒ void
This method returns an undefined value.
Execute the list command.
35 36 37 38 39 |
# File 'lib/omnizip/commands/list_command.rb', line 35 def run algorithms = fetch_algorithms output = CliOutputFormatter.format_algorithms_table(algorithms) puts output end |