Class: Afterlife::Deploy::Deployment

Inherits:
Object
  • Object
show all
Defined in:
lib/afterlife/deploy/deployment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Deployment

Returns a new instance of Deployment.



8
9
10
# File 'lib/afterlife/deploy/deployment.rb', line 8

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/afterlife/deploy/deployment.rb', line 6

def options
  @options
end

Instance Method Details

#confirmation_messageObject



24
# File 'lib/afterlife/deploy/deployment.rb', line 24

def confirmation_message; end

#initial_messageObject



23
# File 'lib/afterlife/deploy/deployment.rb', line 23

def initial_message; end

#outputObject



22
# File 'lib/afterlife/deploy/deployment.rb', line 22

def output; end

#repo_commandObject



16
17
18
19
# File 'lib/afterlife/deploy/deployment.rb', line 16

def repo_command
  result = Array(repo.conf.dig(:deploy, :command))
  result unless result.empty?
end

#runObject



12
13
14
# File 'lib/afterlife/deploy/deployment.rb', line 12

def run
  fail NotImplementedError
end

#setupObject



21
# File 'lib/afterlife/deploy/deployment.rb', line 21

def setup; end