Module: WorkFlow::ClassMethods

Includes:
Constants
Included in:
WorkFlow
Defined in:
app/models/work_flow.rb

Constant Summary

Constants included from Constants

WorkFlow::Constants::Branch_compression, WorkFlow::Constants::Branch_enhancement

Instance Method Summary collapse

Instance Method Details

#all(pattern_name = :test) ⇒ Object


28
29
30
31
32
33
34
35
36
# File 'app/models/work_flow.rb', line 28

def all(pattern_name=:test)
	pattern=FilePattern.find_by_name(pattern_name)
	glob=pattern.pathname_glob
	tests=Dir[glob]
	puts tests.inspect if $VERBOSE
	tests.each do |test|
		WorkFlow.new(test).unit_test
	end #each
end

#merge_range(deserving_branch) ⇒ Object

revison_tag


40
41
42
43
44
45
46
47
# File 'app/models/work_flow.rb', line 40

def merge_range(deserving_branch)
	deserving_index=Branch_enhancement.index(deserving_branch)
	if deserving_index.nil? then
		raise deserving_branch.inspect+'not found in '+Branch_enhancement.inspect
	else
		deserving_index..Branch_enhancement.size-1
	end #if
end

#revison_tag(branch) ⇒ Object

test_unit_test_all


37
38
39
# File 'app/models/work_flow.rb', line 37

def revison_tag(branch)
		return '-r '+branch.to_s
end