Class: Guard::Cedar::Runner
- Inherits:
-
Object
- Object
- Guard::Cedar::Runner
- Defined in:
- lib/guard/cedar/runner.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #compile ⇒ Object
- #configuration ⇒ Object
- #environment_options ⇒ Object
- #execute ⇒ Object
-
#initialize(options = {}) ⇒ Runner
constructor
A new instance of Runner.
- #project_path ⇒ Object
- #run ⇒ Object
- #sdk_version ⇒ Object
- #target ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Runner
Returns a new instance of Runner.
8 9 10 |
# File 'lib/guard/cedar/runner.rb', line 8 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/guard/cedar/runner.rb', line 6 def @options end |
Instance Method Details
#compile ⇒ Object
37 38 39 40 41 42 |
# File 'lib/guard/cedar/runner.rb', line 37 def compile system( compile_command, :out => "/dev/null" ) end |
#configuration ⇒ Object
12 13 14 |
# File 'lib/guard/cedar/runner.rb', line 12 def configuration [:configuration] || "Debug" end |
#environment_options ⇒ Object
20 21 22 |
# File 'lib/guard/cedar/runner.rb', line 20 def [:env] || {} end |
#execute ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/guard/cedar/runner.rb', line 44 def execute system( cedar_environment, execute_command, :unsetenv_others => true ) end |
#project_path ⇒ Object
28 29 30 |
# File 'lib/guard/cedar/runner.rb', line 28 def project_path [:project_path] end |
#run ⇒ Object
32 33 34 35 |
# File 'lib/guard/cedar/runner.rb', line 32 def run return false unless compile execute end |
#sdk_version ⇒ Object
16 17 18 |
# File 'lib/guard/cedar/runner.rb', line 16 def sdk_version [:sdk_version] || "6.1" end |
#target ⇒ Object
24 25 26 |
# File 'lib/guard/cedar/runner.rb', line 24 def target [:target] end |