Class: EmberCli::Configuration
- Inherits:
-
Object
- Object
- EmberCli::Configuration
- Includes:
- Singleton
- Defined in:
- lib/ember_cli/configuration.rb
Instance Attribute Summary collapse
-
#watcher ⇒ Object
Returns the value of attribute watcher.
Instance Method Summary collapse
- #app(name, **options) ⇒ Object
- #apps ⇒ Object
- #bower_path ⇒ Object
- #build_timeout= ⇒ Object
- #bundler_path ⇒ Object
- #npm_path ⇒ Object
- #tee_path ⇒ Object
Instance Attribute Details
#watcher ⇒ Object
Returns the value of attribute watcher.
46 47 48 |
# File 'lib/ember_cli/configuration.rb', line 46 def watcher @watcher end |
Instance Method Details
#app(name, **options) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/ember_cli/configuration.rb', line 7 def app(name, **) if .has_key? :build_timeout deprecate_timeout end if .has_key? :enable deprecate_enable end app = App.new(name, ) app.sprockets.register! apps.store(name, app) end |
#apps ⇒ Object
21 22 23 |
# File 'lib/ember_cli/configuration.rb', line 21 def apps @apps ||= HashWithIndifferentAccess.new end |
#bower_path ⇒ Object
30 31 32 |
# File 'lib/ember_cli/configuration.rb', line 30 def bower_path @bower_path ||= Helpers.which("bower") end |
#build_timeout= ⇒ Object
42 43 44 |
# File 'lib/ember_cli/configuration.rb', line 42 def build_timeout=(*) deprecate_timeout end |
#bundler_path ⇒ Object
38 39 40 |
# File 'lib/ember_cli/configuration.rb', line 38 def bundler_path @bundler_path ||= Helpers.which("bundler") end |