Class: RepoManager::AppAction

Inherits:
BaseAction show all
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.

Instance Attribute Summary

Attributes inherited from BaseAction

#args, #configuration, #exit_code, #option_parser, #options, #output, #template

Instance Method Summary collapse

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_typeSymbol

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.

Returns:

  • (Symbol)

    asset type



18
19
20
# File 'lib/repo_manager/actions/app_action.rb', line 18

def asset_type
  :repo_asset
end

#reposArray

alias for items/assets

Returns:



25
26
27
# File 'lib/repo_manager/actions/app_action.rb', line 25

def repos
  items
end