Module: Rocksteady::Helpers
- Defined in:
- lib/rocksteady/helpers.rb
Instance Method Summary collapse
Instance Method Details
#corpus ⇒ Object
5 6 7 |
# File 'lib/rocksteady/helpers.rb', line 5 def corpus @corpus ||= Rocksteady::Corpus.new(self) end |
#repos(*paths) ⇒ Object
9 10 11 |
# File 'lib/rocksteady/helpers.rb', line 9 def repos(*paths) corpus.add_repos(*paths.flatten) end |
#scenario(opts, &block) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/rocksteady/helpers.rb', line 13 def scenario(opts, &block) title, deps = if opts.is_a?(Hash) [opts.keys.first, Array(opts.values.first)] else [opts, []] end scenario = corpus.add_scenario(title, &block) generate_scenario_task scenario, deps end |