Module: TaskLoop::DSL

Included in:
Deploy, List, Run
Defined in:
lib/taskloop/dsl/dsl.rb

Instance Method Summary collapse

Instance Method Details

#after(left) ⇒ Object



29
30
31
# File 'lib/taskloop/dsl/dsl.rb', line 29

def after(left)
  AfterScopeRule.new(:unknown, left)
end

#at(*values) ⇒ Object

Specific Syntax



14
15
16
# File 'lib/taskloop/dsl/dsl.rb', line 14

def at(*values)
  SpecificRule.new(:unknown, values)
end

#before(right) ⇒ Object

Scope Syntax



21
22
23
# File 'lib/taskloop/dsl/dsl.rb', line 21

def before(right)
  BeforeScopeRule.new(:unknown, right)
end

#between(left, right) ⇒ Object



25
26
27
# File 'lib/taskloop/dsl/dsl.rb', line 25

def between(left, right)
  BetweenScopeRule.new(:unknown, left, right)
end

#date(*args) ⇒ Object

Date List Syntax



50
51
52
# File 'lib/taskloop/dsl/dsl.rb', line 50

def date(*args)
  DateListRule.new(:unknown, args)
end

#env(name, value) ⇒ Object

Env



68
69
70
# File 'lib/taskloop/dsl/dsl.rb', line 68

def env(name, value)
  ENV[name] = value
end

#from(value) ⇒ Object

Boundary Syntax



57
58
59
# File 'lib/taskloop/dsl/dsl.rb', line 57

def from(value)
  StartPointBoundaryRule.new(:unknown, value)
end

#interval(interval) ⇒ Object

Loop Syntax



7
8
9
# File 'lib/taskloop/dsl/dsl.rb', line 7

def interval(interval)
  IntervalRule.new(:unknown, interval)
end

#loop(count) ⇒ Object

Loop Syntax



36
37
38
# File 'lib/taskloop/dsl/dsl.rb', line 36

def loop(count)
  LoopRule.new(:unknown, count)
end

#time(*args) ⇒ Object

Time List Syntax



43
44
45
# File 'lib/taskloop/dsl/dsl.rb', line 43

def time(*args)
  TimeListRule.new(:unknown, args)
end

#to(value) ⇒ Object



61
62
63
# File 'lib/taskloop/dsl/dsl.rb', line 61

def to(value)
  EndPointBoundaryRule.new(:unknown, value)
end