Class: DInstallerCli::Commands::Software
- Inherits:
-
Thor
- Object
- Thor
- DInstallerCli::Commands::Software
- Defined in:
- lib/dinstaller_cli/commands/software.rb
Overview
Subcommand to manage software settings
Instance Method Summary collapse
Instance Method Details
#available_products ⇒ Object
30 31 32 33 |
# File 'lib/dinstaller_cli/commands/software.rb', line 30 def available_products products = client.available_products.map { |l| l.join(" - ") } products.each { |p| say(p) } end |
#selected_product(id = nil) ⇒ Object
37 38 39 40 |
# File 'lib/dinstaller_cli/commands/software.rb', line 37 def selected_product(id = nil) client.select_product(id) if id say(client.selected_product) end |