Module: Statistrano::Deployment::Strategy
- Defined in:
- lib/statistrano/deployment/strategy.rb,
lib/statistrano/deployment/strategy/base.rb,
lib/statistrano/deployment/strategy/branches.rb,
lib/statistrano/deployment/strategy/releases.rb,
lib/statistrano/deployment/strategy/check_git.rb,
lib/statistrano/deployment/strategy/invoke_tasks.rb,
lib/statistrano/deployment/strategy/branches/index.rb,
lib/statistrano/deployment/strategy/branches/release.rb
Defined Under Namespace
Modules: CheckGit, InvokeTasks
Classes: Base, Branches, Releases, UndefinedStrategy
Class Method Summary
collapse
Class Method Details
.find(name) ⇒ Object
15
16
17
18
19
|
# File 'lib/statistrano/deployment/strategy.rb', line 15
def find name
registered.fetch(name.to_sym) do
raise UndefinedStrategy, "no strategies are registered as :#{name}"
end
end
|
.register(deployment, name) ⇒ Object
11
12
13
|
# File 'lib/statistrano/deployment/strategy.rb', line 11
def register deployment, name
registered[name.to_sym] = deployment
end
|
.registered ⇒ Object
7
8
9
|
# File 'lib/statistrano/deployment/strategy.rb', line 7
def registered
@_registered ||= {}
end
|