Class: Chap::Strategy::Base
- Inherits:
-
Object
- Object
- Chap::Strategy::Base
- Includes:
- Chap::SpecialMethods
- Defined in:
- lib/chap/strategy/base.rb
Constant Summary
Constants included from Chap::SpecialMethods
Chap::SpecialMethods::SPECIAL_METHODS
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#deploy ⇒ Object
should download code to the release_path.
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from Chap::SpecialMethods
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 |
# File 'lib/chap/strategy/base.rb', line 7 def initialize(={}) @options = @config = [:config] log "Deploying via #{self.class} strategy".colorize(:green) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
6 7 8 |
# File 'lib/chap/strategy/base.rb', line 6 def config @config end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/chap/strategy/base.rb', line 6 def @options end |
Instance Method Details
#deploy ⇒ Object
should download code to the release_path
14 15 16 |
# File 'lib/chap/strategy/base.rb', line 14 def deploy raise "Must implement deploy method" end |