Class: Beaker::Tasks::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Beaker::Tasks::RakeTask
- Includes:
- Rake::DSL
- Defined in:
- lib/beaker/tasks/rake_task.rb
Constant Summary collapse
- DEFAULT_ACCEPTANCE_ROOT =
"./acceptance"
- COMMAND_OPTIONS =
[:fail_mode, :hosts, :helper, :keyfile, :log_level, :options_file, :preserve_hosts, :tests, :type, :acceptance_root, :name]
Instance Method Summary collapse
-
#initialize(*args, &task_block) ⇒ RakeTask
constructor
Sets up the predefine task checking if no additonal arguments are defined such as parameters it will default to [:hosts,:type].
Constructor Details
#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]
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 |