Class: Dply::Strategy::Base
- Inherits:
-
Object
- Object
- Dply::Strategy::Base
- Extended by:
- Forwardable
- Includes:
- Helper
- Defined in:
- lib/dply/strategy/base.rb
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
-
#initialize(config, options) ⇒ Base
constructor
A new instance of Base.
- #reload ⇒ Object
- #reopen_logs ⇒ Object
- #stop ⇒ Object
Methods included from Helper
#cmd, #error, #git, #logger, #sh, #symlink
Constructor Details
#initialize(config, options) ⇒ Base
Returns a new instance of Base.
23 24 25 26 |
# File 'lib/dply/strategy/base.rb', line 23 def initialize(config, ) @config = config @options = || {} end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
18 19 20 |
# File 'lib/dply/strategy/base.rb', line 18 def config @config end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
18 19 20 |
# File 'lib/dply/strategy/base.rb', line 18 def @options end |
Instance Method Details
#deploy ⇒ Object
28 29 30 |
# File 'lib/dply/strategy/base.rb', line 28 def deploy raise NotImplementedError end |
#reload ⇒ Object
32 33 34 |
# File 'lib/dply/strategy/base.rb', line 32 def reload raise NotImplementedError end |
#reopen_logs ⇒ Object
40 41 |
# File 'lib/dply/strategy/base.rb', line 40 def reopen_logs end |
#stop ⇒ Object
36 37 38 |
# File 'lib/dply/strategy/base.rb', line 36 def stop raise NotImplementedError end |