Class: Jax::Configuration
- Inherits:
-
Object
- Object
- Jax::Configuration
- Defined in:
- lib/jax/configuration.rb
Instance Attribute Summary collapse
- #default_plugin_repository_url ⇒ Object
- #plugin_repository_url ⇒ Object
-
#webgl_start ⇒ Object
Returns the value of attribute webgl_start.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #specs ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
35 36 37 |
# File 'lib/jax/configuration.rb', line 35 def initialize @webgl_start = { :controller => "jax/suite", :action => "run_webgl" } end |
Instance Attribute Details
#default_plugin_repository_url ⇒ Object
7 8 9 |
# File 'lib/jax/configuration.rb', line 7 def default_plugin_repository_url "http://plugins.jaxgl.com/" end |
#plugin_repository_url ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/jax/configuration.rb', line 11 def plugin_repository_url @plugin_repository_url ||= config_file[:plugin_repository_url] || ENV['JAX_PLUGIN_REPOSITORY_URL'] || default_plugin_repository_url @plugin_repository_url.dup # so that it can't be edited in-place end |
#webgl_start ⇒ Object
Returns the value of attribute webgl_start.
3 4 5 |
# File 'lib/jax/configuration.rb', line 3 def webgl_start @webgl_start end |
Instance Method Details
#specs ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/jax/configuration.rb', line 20 def specs @specs ||= begin specs = Sprockets::Environment.new specs.append_path ::Rails.root.join("spec/javascripts").to_s specs.append_path File.("../../spec/javascripts/helpers", File.dirname(__FILE__)) # make all assets available to specs so they can //=require them as needed ::Rails.application.config.assets.paths.each do |path| specs.append_path path end specs end end |