Module: Trooper::Config::Action
- Included in:
- Defaults
- Defined in:
- lib/trooper/config/action.rb
Constant Summary collapse
- DEFAULT_ACTIONS =
[Actions::SetupTrooperAction, Actions::PreparePrerequisiteAction, Actions::CloneRepositoryAction, Actions::InstallGemsAction, Actions::MigrateDatabaseAction, Actions::RestartServerAction, Actions::RollbackMigrateAction, Actions::SetupDatabaseAction, Actions::UpdateRepositoryAction, Actions::PrecompileAssetsAction]
Instance Method Summary collapse
- #action(name, description = "No Description", options = {}, &block) ⇒ Object
- #load_default_actions! ⇒ Object
Instance Method Details
#action(name, description = "No Description", options = {}, &block) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/trooper/config/action.rb', line 24 def action(name, description = "No Description", = {}, &block) action = Trooper::Action.new name, description, , &block action.config = self Trooper::Arsenal.actions.add action end |