Method: Beaker::Tasks::RakeTask#initialize

Defined in:
lib/beaker/tasks/rake_task.rb

#initialize(*args, &task_block) ⇒ RakeTask

Sets up the predefine task checking if no additonal arguments are defined such as parameters it will default to [:hosts,:type]

Parameters:

  • args (Array)

    First argument is always the name of the task



33
34
35
36
37
38
39
40
41
# File 'lib/beaker/tasks/rake_task.rb', line 33

def initialize(*args, &task_block)
  @name = args.shift || 'beaker:test'
  if args.empty?
    args = [:hosts,:type]
  end
  @acceptance_root = DEFAULT_ACCEPTANCE_ROOT
  @options_file = nil
  define(args, &task_block)
end