forked from tricknotes/ember-cli-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.rb
More file actions
38 lines (30 loc) · 721 Bytes
/
configuration.rb
File metadata and controls
38 lines (30 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
require "singleton"
module EmberCLI
class Configuration
include Singleton
def app(name, options={})
if RUBY_PLATFORM =~ /mswin32|cygwin|mingw|bccwin/
apps.store name, AppWin.new(name, options)
else
apps.store name, App.new(name, options)
end
end
def apps
@apps ||= HashWithIndifferentAccess.new
end
def tee_path
return @tee_path if defined?(@tee_path)
@tee_path = Helpers.which("tee")
end
def npm_path
@npm_path ||= Helpers.which("npm")
end
def bundler_path
@bundler_path ||= Helpers.which("bundler")
end
def build_timeout
@build_timeout ||= 5
end
attr_writer :build_timeout
end
end