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

#watcherObject

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, **options)
  if options.has_key? :build_timeout
    deprecate_timeout
  end

  if options.has_key? :enable
    deprecate_enable
  end

  app = App.new(name, options)
  app.sprockets.register!
  apps.store(name, app)
end

#appsObject



21
22
23
# File 'lib/ember_cli/configuration.rb', line 21

def apps
  @apps ||= HashWithIndifferentAccess.new
end

#bower_pathObject



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_pathObject



38
39
40
# File 'lib/ember_cli/configuration.rb', line 38

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

#npm_pathObject



34
35
36
# File 'lib/ember_cli/configuration.rb', line 34

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

#tee_pathObject



25
26
27
28
# File 'lib/ember_cli/configuration.rb', line 25

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