Sha256: 66001d65999b7c60197e157e84c4aece70cd1a4c7cfd1f91118bbf6718b0fc42
Contents?: true
Size: 1.33 KB
Versions: 3
Compression:
Stored size: 1.33 KB
Contents
require "baleen/task/task" module Baleen module Task class Cucumber < Baleen::Task::Base include Serializable include Baleen::Default 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[: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] @params[:command] = opt[:command] @params[:results] = opt[:results] @params[:status] = opt[:status] @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) result = runner.run @target_files = result[:stdout] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
baleen-0.2.3 | lib/baleen/task/cucumber.rb |
baleen-0.2.2 | lib/baleen/task/cucumber.rb |
baleen-0.2.1 | lib/baleen/task/cucumber.rb |