Class: RepoManager::AppAction
- Inherits:
-
BaseAction
- Object
- BaseAction
- RepoManager::AppAction
- Defined in:
- lib/repo_manager/actions/app_action.rb
Overview
An abstract superclass for basic action functionality specific to an application implementation. Put application specific code here.
Direct Known Subclasses
GitAction, HelpAction, ListAction, PathAction, StatusAction, TaskAction
Instance Attribute Summary
Attributes inherited from BaseAction
#args, #configuration, #exit_code, #option_parser, #options, #output, #template
Instance Method Summary collapse
-
#asset_type ⇒ Symbol
Used by asset factory to create assets.
-
#repos ⇒ Array
alias for items/assets.
Methods inherited from BaseAction
#after_execute, #asset_options, #assets, #before_execute, #execute, #help, #initialize, #items, #overwrite_output?, #parse_options, #process, #render, #write_to_output
Constructor Details
This class inherits a constructor from RepoManager::BaseAction
Instance Method Details
#asset_type ⇒ Symbol
Used by asset factory to create assets. Override in app_action.rb or a descendant to set the class to be instantiated by by the AssetManager.
18 19 20 |
# File 'lib/repo_manager/actions/app_action.rb', line 18 def asset_type :repo_asset end |
#repos ⇒ Array
alias for items/assets
25 26 27 |
# File 'lib/repo_manager/actions/app_action.rb', line 25 def repos items end |