Class: Jets::Cfn::Bootstrap

Inherits:
Object
  • Object
show all
Defined in:
lib/jets/cfn/bootstrap.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Bootstrap

Returns a new instance of Bootstrap.



3
4
5
# File 'lib/jets/cfn/bootstrap.rb', line 3

def initialize(options = {})
  @options = options.merge(bootstrap: true)
end

Instance Method Details

#runObject



7
8
9
10
11
# File 'lib/jets/cfn/bootstrap.rb', line 7

def run
  Builder::Parent::Genesis.new(@options).build
  success = Deploy.new(@options).sync # returns true if success
  abort("Bootstrap deploy failed") unless success
end