Class: ResponseMate::Commands::List
- Defined in:
- lib/response_mate/commands/list.rb
Overview
Command which performs the operations required by ‘response_mate list`
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#run ⇒ Object
Run the command based on args, options provided.
Methods inherited from Base
Constructor Details
This class inherits a constructor from ResponseMate::Commands::Base
Instance Method Details
#run ⇒ Object
Run the command based on args, options provided
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/response_mate/commands/list.rb', line 4 def run # rubocop:disable Metrics/AbcSize environment = ResponseMate::Environment.new([:environment]) [:manifest] = ResponseMate::Manifest.new([:requests_manifest], environment) puts available_keys.join("\n") << "\n\n" action = ask_action return if action == :no perform_action(action, ask_key(available_keys)) end |