lib/baleen/task/cucumber.rb in baleen-0.2.3 vs lib/baleen/task/cucumber.rb in baleen-0.2.4
- old
+ new
@@ -9,13 +9,12 @@
attr_reader :target_files
def initialize(opt)
super()
- @params[:shell] = opt[:shell] || "/bin/bash"
- @params[:opt] = opt[:opt] || "-c"
- @params[:exe] = opt[:exe] || "bundle exec cucumber"
+ @params[:bin] = opt[:bin] || "bundle exec cucumber"
+ @params[:options] = opt[:options]
@params[:work_dir] = opt[:work_dir] || default_work_dir
@params[:files] = opt[:files] || default_features
@params[:concurrency] = opt[:concurrency] || default_concurrency
@params[:before_command] = opt[:before_command] || default_before_command
@params[:image] = opt[:image]
@@ -25,11 +24,9 @@
@params[:commit] = nil
end
def prepare
task = Generic.new(
- shell: shell,
- opt: opt,
work_dir: work_dir,
image: image,
command: %{find #{files} | grep "\\.feature"}
)
runner = Baleen::Runner.new(task)
\ No newline at end of file