Class: EmberCLI::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/ember-cli/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#build_timeout ⇒ Object



28
29
30
# File 'lib/ember-cli/configuration.rb', line 28

def build_timeout
  @build_timeout ||= 5
end

#watcher ⇒ Object

Returns the value of attribute watcher.



33
34
35
# File 'lib/ember-cli/configuration.rb', line 33

def watcher
  @watcher
end

Instance Method Details

#app(name, options = {}) ⇒ Object



7
8
9
# File 'lib/ember-cli/configuration.rb', line 7

def app(name, options={})
  apps.store name, App.new(name, options)
end

#apps ⇒ Object



11
12
13
# File 'lib/ember-cli/configuration.rb', line 11

def apps
  @apps ||= HashWithIndifferentAccess.new
end

#bundler_path ⇒ Object



24
25
26
# File 'lib/ember-cli/configuration.rb', line 24

def bundler_path
  @bundler_path ||= Helpers.which("bundler")
end

#npm_path ⇒ Object



20
21
22
# File 'lib/ember-cli/configuration.rb', line 20

def npm_path
  @npm_path ||= Helpers.which("npm")
end

#tee_path ⇒ Object



15
16
17
18
# File 'lib/ember-cli/configuration.rb', line 15

def tee_path
  return @tee_path if defined?(@tee_path)
  @tee_path = Helpers.which("tee")
end