Class: IterationList

Inherits:
Object
  • Object
show all
Defined in:
lib/sensei/iteration_list.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ IterationList

Returns a new instance of IterationList.



2
3
4
# File 'lib/sensei/iteration_list.rb', line 2

def initialize(path)
  @path = path
end

Instance Method Details

#iterationsObject



6
7
8
9
10
# File 'lib/sensei/iteration_list.rb', line 6

def iterations
  GitTagLister.new(@path).tags.select do |tag|
    /iteration-\d*/.match(tag)
  end.size
end