Class: Guard::Unity
- Inherits:
-
Plugin
- Object
- Plugin
- Guard::Unity
- Defined in:
- lib/guard/unity.rb,
lib/guard/unity/parser.rb,
lib/guard/unity/runner.rb,
lib/guard/unity/options.rb,
lib/guard/unity/notifier.rb,
lib/guard/unity/notifier/cli.rb,
lib/guard/unity/notifier/alert.rb
Defined Under Namespace
Modules: Options Classes: Notifier, Parser, Runner
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#runner ⇒ Object
Returns the value of attribute runner.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Unity
constructor
A new instance of Unity.
- #reload ⇒ Object
- #run_all ⇒ Object
- #run_on_modifications(paths) ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Unity
Returns a new instance of Unity.
12 13 14 15 16 |
# File 'lib/guard/unity.rb', line 12 def initialize( = {}) super @options = Options.with_defaults() @runner = Runner.new(@options) end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
10 11 12 |
# File 'lib/guard/unity.rb', line 10 def @options end |
#runner ⇒ Object
Returns the value of attribute runner.
10 11 12 |
# File 'lib/guard/unity.rb', line 10 def runner @runner end |
Instance Method Details
#reload ⇒ Object
27 28 |
# File 'lib/guard/unity.rb', line 27 def reload end |
#run_all ⇒ Object
30 31 32 |
# File 'lib/guard/unity.rb', line 30 def run_all puts runner.run end |
#run_on_modifications(paths) ⇒ Object
23 24 25 |
# File 'lib/guard/unity.rb', line 23 def run_on_modifications(paths) puts runner.run end |
#start ⇒ Object
18 19 20 21 |
# File 'lib/guard/unity.rb', line 18 def start puts runner.run if _should_test_on_start? end |