class Pipely::Deploy::Bootstrap
Helps bootstrap a pipeline
Attributes
gem_files[R]
s3_steps_path[R]
Public Class Methods
new(gem_files, s3_steps_path)
click to toggle source
# File lib/pipely/deploy/bootstrap.rb, line 15 def initialize(gem_files, s3_steps_path) @gem_files = gem_files @s3_steps_path = s3_steps_path end
Public Instance Methods
context(*mixins)
click to toggle source
# File lib/pipely/deploy/bootstrap.rb, line 20 def context(*mixins) bootstrap_mixins = BootstrapRegistry.instance.register_mixins(mixins) BootstrapContext.class_eval do bootstrap_mixins.each do |mixin| puts "Adding bootstrap mixin #{mixin}" include mixin.constantize end self end.new.tap do |context| context.gem_files = gem_files context.s3_steps_path = s3_steps_path end end