Module: Guard::Unity::Options
- Defined in:
- lib/guard/unity/options.rb
Constant Summary collapse
- DEFAULTS =
{ test_on_start: true, project_path: Dir.pwd, unity: '/Applications/Unity/Unity.app/Contents/MacOS/Unity', results_path: Dir.pwd + '/UnitTestResults.xml' }
Class Method Summary collapse
Class Method Details
.clean_directory(dir) ⇒ Object
19 20 21 |
# File 'lib/guard/unity/options.rb', line 19 def clean_directory(dir) dir.gsub(' ', '\ ') end |
.with_defaults(options = {}) ⇒ Object
13 14 15 16 17 |
# File 'lib/guard/unity/options.rb', line 13 def with_defaults(={}) opts = DEFAULTS.merge() opts[:project_path] = clean_directory(opts[:project_path]) # needs to be formatted for cli opts end |