Module: Flight::Router::Container::Builder

Defined in:
lib/flight/router/container.rb

Class Method Summary collapse

Class Method Details

.builderObject



16
17
18
# File 'lib/flight/router/container.rb', line 16

def self.builder
  @builder ||= {}
end

.command(command, &block) ⇒ Object



12
13
14
15
# File 'lib/flight/router/container.rb', line 12

def self.command(command,&block)
  builder[@image] ||= {}
  builder[@image][command] = block
end

.image(image, &block) ⇒ Object



7
8
9
10
11
# File 'lib/flight/router/container.rb', line 7

def self.image(image,&block)
  @image = image
  block.call
  @image = nil
end