Class: Jasminewebos::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/jasminewebos/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.expand_path(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_rootObject

Returns the value of attribute application_root.



3
4
5
# File 'lib/jasminewebos/configuration.rb', line 3

def application_root
  @application_root
end

#jasmine_rootObject

Returns the value of attribute jasmine_root.



3
4
5
# File 'lib/jasminewebos/configuration.rb', line 3

def jasmine_root
  @jasmine_root
end

#jasminewebos_rootObject

Returns the value of attribute jasminewebos_root.



3
4
5
# File 'lib/jasminewebos/configuration.rb', line 3

def jasminewebos_root
  @jasminewebos_root
end

#matchers_dirObject

Returns the value of attribute matchers_dir.



3
4
5
# File 'lib/jasminewebos/configuration.rb', line 3

def matchers_dir
  @matchers_dir
end

#portObject

Returns the value of attribute port.



3
4
5
# File 'lib/jasminewebos/configuration.rb', line 3

def port
  @port
end

#sources_jsonObject

Returns the value of attribute sources_json.



3
4
5
# File 'lib/jasminewebos/configuration.rb', line 3

def sources_json
  @sources_json
end

#specs_dirObject

Returns the value of attribute specs_dir.



3
4
5
# File 'lib/jasminewebos/configuration.rb', line 3

def specs_dir
  @specs_dir
end