Module: Abid::DSL

Defined in:
lib/abid/dsl_definition.rb

Instance Method Summary collapse

Instance Method Details

#define_worker(name, thread_count) ⇒ Object



7
8
9
# File 'lib/abid/dsl_definition.rb', line 7

def define_worker(name, thread_count)
  Rake.application.worker.define(name, thread_count)
end

#helpers(*extensions, &block) ⇒ Object



15
16
17
# File 'lib/abid/dsl_definition.rb', line 15

def helpers(*extensions, &block)
  Abid::Play.helpers(*extensions, &block)
end

#invoke(task, *args, **params) ⇒ Object



19
20
21
# File 'lib/abid/dsl_definition.rb', line 19

def invoke(task, *args, **params)
  Rake.application[task, **params].async_invoke(*args).wait!
end

#mixin(*args, &block) ⇒ Object



23
24
25
# File 'lib/abid/dsl_definition.rb', line 23

def mixin(*args, &block)
  Abid::MixinTask.define_mixin(*args, &block)
end

#play(*args, &block) ⇒ Object



3
4
5
# File 'lib/abid/dsl_definition.rb', line 3

def play(*args, &block)
  Abid::Task.define_play(*args, &block)
end

#play_base(&block) ⇒ Object



11
12
13
# File 'lib/abid/dsl_definition.rb', line 11

def play_base(&block)
  Rake.application.play_base(&block)
end