class Flaun::DSL
Attributes
config[R]
Public Class Methods
new()
click to toggle source
# File lib/flaun/dsl.rb, line 7 def initialize @config = ::Flaun::Config.new end
Public Instance Methods
port(port)
click to toggle source
# File lib/flaun/dsl.rb, line 11 def port(port) @config.port = port end
target(name, &block)
click to toggle source
# File lib/flaun/dsl.rb, line 15 def target(name, &block) target = DSLTarget.new(@config) target.instance_exec &block @config.targets[name] = target.config end