Module: Bindup::Configuration

Included in:
Bindup
Defined in:
lib/bindup/configuration.rb

Defined Under Namespace

Classes: Configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#component_setupObject (readonly)

Returns the value of attribute component_setup.



6
7
8
# File 'lib/bindup/configuration.rb', line 6

def component_setup
  @component_setup
end

#configurationObject

Returns the value of attribute configuration.



5
6
7
# File 'lib/bindup/configuration.rb', line 5

def configuration
  @configuration
end

Instance Method Details

#configure {|configuration| ... } ⇒ Object

Yields:



8
9
10
11
12
13
14
15
# File 'lib/bindup/configuration.rb', line 8

def configure
  self.configuration ||= Configuration.new
  yield(configuration)

  @component_setup = YAML.load_file(configuration.config_path)

  Bindup::ServiceCreator.execute
end