Module: Fire::DSL

Defined in:
lib/fire/dsl.rb

Instance Method Summary collapse

Instance Method Details

#desc(description) ⇒ Object



24
25
26
# File 'lib/fire/dsl.rb', line 24

def desc(description)
  Fire.system.desc(description)
end

#rule(logic, &procedure) ⇒ Object



12
13
14
# File 'lib/fire/dsl.rb', line 12

def rule(logic, &procedure)
  Fire.system.rule(logic, &procedure)
end

#state(name, &condition) ⇒ Object



8
9
10
# File 'lib/fire/dsl.rb', line 8

def state(name, &condition)
  Fire.system.state(name, &condition)
end

#task(name_and_logic, &procedure) ⇒ Object



28
29
30
# File 'lib/fire/dsl.rb', line 28

def task(name_and_logic, &procedure)
  Fire.system.task(name_and_logic, &procedure)
end

#trip(state) ⇒ Object

def file(pattern, &procedure)

Fire.system.file(pattern, &procedure)

end



20
21
22
# File 'lib/fire/dsl.rb', line 20

def trip(state)
  Fire.system.trip(state)
end