Class: Jasminewebos::Configuration
- Inherits:
-
Object
- Object
- Jasminewebos::Configuration
- Defined in:
- lib/jasminewebos/configuration.rb
Instance Attribute Summary collapse
-
#application_root ⇒ Object
Returns the value of attribute application_root.
-
#jasmine_root ⇒ Object
Returns the value of attribute jasmine_root.
-
#jasminewebos_root ⇒ Object
Returns the value of attribute jasminewebos_root.
-
#matchers_dir ⇒ Object
Returns the value of attribute matchers_dir.
-
#port ⇒ Object
Returns the value of attribute port.
-
#sources_json ⇒ Object
Returns the value of attribute sources_json.
-
#specs_dir ⇒ Object
Returns the value of attribute specs_dir.
Instance Method Summary collapse
-
#initialize(application_root) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(application_root) ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 14 |
# File 'lib/jasminewebos/configuration.rb', line 6 def initialize(application_root) @port = 8888 @jasminewebos_root = File.(File.join(File.dirname(__FILE__), "..", "..")) @jasmine_root = File.join(@jasminewebos_root, "vendor", "jasmine") @application_root = application_root @specs_dir = File.join(@application_root, "spec", "javascript", "spec") @matchers_dir = File.join(@application_root, "spec", "javascript", "matchers") @sources_json = File.join(@application_root, "sources.json") end |
Instance Attribute Details
#application_root ⇒ Object
Returns the value of attribute application_root.
3 4 5 |
# File 'lib/jasminewebos/configuration.rb', line 3 def application_root @application_root end |
#jasmine_root ⇒ Object
Returns the value of attribute jasmine_root.
3 4 5 |
# File 'lib/jasminewebos/configuration.rb', line 3 def jasmine_root @jasmine_root end |
#jasminewebos_root ⇒ Object
Returns the value of attribute jasminewebos_root.
3 4 5 |
# File 'lib/jasminewebos/configuration.rb', line 3 def jasminewebos_root @jasminewebos_root end |
#matchers_dir ⇒ Object
Returns the value of attribute matchers_dir.
3 4 5 |
# File 'lib/jasminewebos/configuration.rb', line 3 def matchers_dir @matchers_dir end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/jasminewebos/configuration.rb', line 3 def port @port end |
#sources_json ⇒ Object
Returns the value of attribute sources_json.
3 4 5 |
# File 'lib/jasminewebos/configuration.rb', line 3 def sources_json @sources_json end |
#specs_dir ⇒ Object
Returns the value of attribute specs_dir.
3 4 5 |
# File 'lib/jasminewebos/configuration.rb', line 3 def specs_dir @specs_dir end |