Class: Shoes::UI::CLI::SelectBackendCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Shoes::UI::CLI::SelectBackendCommand
- Defined in:
- shoes-core/lib/shoes/ui/cli/select_backend_command.rb
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
Methods inherited from BaseCommand
#help_from_options, #initialize, #parse!, #warn_on_unexpected_parameters
Constructor Details
This class inherits a constructor from Shoes::UI::CLI::BaseCommand
Instance Method Details
#help ⇒ Object
13 14 15 16 17 18 19 |
# File 'shoes-core/lib/shoes/ui/cli/select_backend_command.rb', line 13 def help "shoes select_backend [backend]\n Select a Shoes backend to use. A backend can be specified, or Shoes will\n attempt to auto-detect available backends to select from.\n" end |
#run ⇒ Object
7 8 9 10 11 |
# File 'shoes-core/lib/shoes/ui/cli/select_backend_command.rb', line 7 def run require 'shoes/ui/picker' backend = args[1] Shoes::UI::Picker.new.run(ENV["SHOES_BIN_DIR"], backend) end |