Class: Phase::Deploy::Deployment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Deployment

Returns a new instance of Deployment.



7
8
9
# File 'lib/phase/kit/deploy/deployment.rb', line 7

def initialize(options = {})
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

, :build



5
6
7
# File 'lib/phase/kit/deploy/deployment.rb', line 5

def options
  @options
end

Instance Method Details

#execute!Object

def build

@build ||= Build.new(options[:version_tag])

end



15
16
17
18
# File 'lib/phase/kit/deploy/deployment.rb', line 15

def execute!
  # build.execute!
  deploy_image
end