Class: Rocksteady::Session
- Inherits:
-
Object
- Object
- Rocksteady::Session
- Defined in:
- lib/rocksteady/session.rb
Instance Attribute Summary collapse
-
#corpus ⇒ Object
readonly
Returns the value of attribute corpus.
Instance Method Summary collapse
-
#initialize(corpus) ⇒ Session
constructor
A new instance of Session.
- #run! {|corpus.schedule| ... } ⇒ Object
- #timestamp ⇒ Object
- #title ⇒ Object
Constructor Details
Instance Attribute Details
#corpus ⇒ Object (readonly)
Returns the value of attribute corpus.
5 6 7 |
# File 'lib/rocksteady/session.rb', line 5 def corpus @corpus end |
Instance Method Details
#run! {|corpus.schedule| ... } ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/rocksteady/session.rb', line 18 def run! return if corpus.schedule.empty? clone_repos corpus.schedule.each do |scenario| focus_on scenario do scenario.run! end end yield corpus.schedule end |
#timestamp ⇒ Object
14 15 16 |
# File 'lib/rocksteady/session.rb', line 14 def @timestamp ||= Time.now.to_i end |
#title ⇒ Object
10 11 12 |
# File 'lib/rocksteady/session.rb', line 10 def title @title ||= corpus.refs.map { |k, v| "#{k} `#{v}'" }.join(' vs ') end |