lib/henry/task/rspec_task.rb in henry-container-0.1.40 vs lib/henry/task/rspec_task.rb in henry-container-0.1.41
- old
+ new
@@ -51,24 +51,17 @@
# Returns output base path
#
# @return [String] the base output path.
def base_output_path
- @base_output_path ||= DEFAULT_OUTPUT_BASE_PATH
+ @base_output_path ||= (self.data.system[:output_directory] ? "#{self.data.system[:output_directory]}/output" : DEFAULT_OUTPUT_BASE_PATH)
end
- # Sets the output base path.
- def base_output_path=(path)
- @base_output_path = path
- end
-
# Configures the Task.
#
# @param [Hash] params the task params.
# @param [Hash] extended_context the task extended context.
- def configure(params, extended_context={}, options={})
- self.base_output_path = "#{options[:output_directory]}/output" if options[:output_directory]
-
+ def configure(params, extended_context={})
File.open(OUT_PATH, 'w') { |f| }
# Makes available the spec rake task.
Rake.application.clear
RSpec::Core::RakeTask.new do |t|