Class: Sbmt::Strangler::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/sbmt/strangler/builder.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configuration) ⇒ Builder

Returns a new instance of Builder.

Parameters:



9
10
11
# File 'lib/sbmt/strangler/builder.rb', line 9

def initialize(configuration)
  @configuration = configuration
end

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



6
7
8
# File 'lib/sbmt/strangler/builder.rb', line 6

def configuration
  @configuration
end

Class Method Details

.call!(configuration = Sbmt::Strangler.configuration) ⇒ Object



18
19
20
# File 'lib/sbmt/strangler/builder.rb', line 18

def self.call!(configuration = Sbmt::Strangler.configuration)
  new(configuration).call!
end

Instance Method Details

#call!Object



13
14
15
16
# File 'lib/sbmt/strangler/builder.rb', line 13

def call!
  build_controllers
  add_feature_flags
end