Class: Dply::Strategy::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Helper
Defined in:
lib/dply/strategy/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options)
  @config = config
  @options = options || {}
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



18
19
20
# File 'lib/dply/strategy/base.rb', line 18

def config
  @config
end

#optionsObject (readonly)

Returns the value of attribute options.



18
19
20
# File 'lib/dply/strategy/base.rb', line 18

def options
  @options
end

Instance Method Details

#deployObject



28
29
30
# File 'lib/dply/strategy/base.rb', line 28

def deploy
  raise NotImplementedError
end

#reloadObject



32
33
34
# File 'lib/dply/strategy/base.rb', line 32

def reload
  raise NotImplementedError
end

#reopen_logsObject



40
41
# File 'lib/dply/strategy/base.rb', line 40

def reopen_logs
end

#stopObject



36
37
38
# File 'lib/dply/strategy/base.rb', line 36

def stop
  raise NotImplementedError
end