Class: EC2Launcher::ConfigDSL

Inherits:
Object
  • Object
show all
Defined in:
lib/ec2launcher/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#config(&block) ⇒ Object (readonly)

Returns the value of attribute config.



6
7
8
# File 'lib/ec2launcher/config.rb', line 6

def config
  @config
end

Class Method Details

.execute(dsl) ⇒ Object



16
17
18
19
20
# File 'lib/ec2launcher/config.rb', line 16

def self.execute(dsl)
  new.tap do |context|
    context.instance_eval(dsl)
  end
end