Sha256: 706836f7eeee62bfff86aebaae7ce97093787196d73065cc31bf071b274ab4a8

Contents?: true

Size: 494 Bytes

Versions: 8

Compression:

Stored size: 494 Bytes

Contents

class JasmineNodeConfig
  
  def initialize(dir, json, file)
    @config_path = dir + '/jasmine.conf'
    @json = json
    @file = file
  end
  
  def config_path
    return @config_path
  end
  
  def reload
    contents = File.open(@config_path, 'r') { |f| f.read }
    @config = @json.parse contents
  end
  
  def source_dir
    return @config["sourceDirectory"]
  end
  
  def spec_dir
    return @config["specDirectory"]
  end
  
  def requires
    return @config["requires"]
  end
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
loris-0.5.2 lib/tasks/jasmine_node/jasmine_node_config.rb
loris-0.5.1 lib/tasks/jasmine_node/jasmine_node_config.rb
loris-0.5.0 lib/tasks/jasmine_node/jasmine_node_config.rb
loris-0.4.1 lib/tasks/jasmine_node/jasmine_node_config.rb
loris-0.4.0 lib/tasks/jasmine_node/jasmine_node_config.rb
loris-0.3.2 lib/tasks/jasmine_node/jasmine_node_config.rb
loris-0.3.1 lib/tasks/jasmine_node/jasmine_node_config.rb
loris-0.3.0 lib/tasks/jasmine_node/jasmine_node_config.rb