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_timeoutObject



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

def build_timeout
  @build_timeout ||= 5
end

#watcherObject

Returns the value of attribute watcher.



37
38
39
# File 'lib/ember-cli/configuration.rb', line 37

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

#appsObject



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

def apps
  @apps ||= HashWithIndifferentAccess.new
end

#bower_pathObject



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

def bower_path
  @bower_path ||= Helpers.which("bower")
end

#bundler_pathObject



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

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

#npm_pathObject



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

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

#tee_pathObject



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