Module: EmberCLI
- Extended by:
- EmberCLI
- Included in:
- EmberCLI
- Defined in:
- lib/ember-cli/app.rb,
lib/ember-cli-rails.rb,
lib/ember-cli/helpers.rb,
lib/ember-cli/railtie.rb,
lib/ember-cli/version.rb,
lib/ember-cli/middleware.rb,
lib/ember-cli/view_helpers.rb,
lib/ember-cli/configuration.rb,
lib/generators/ember-cli/init/init_generator.rb
Defined Under Namespace
Modules: Helpers, ViewHelpers
Classes: App, Configuration, InitGenerator, Middleware, Railtie
Constant Summary
collapse
- VERSION =
"0.0.17".freeze
Instance Method Summary
collapse
Instance Method Details
#compile! ⇒ Object
41
42
43
44
|
# File 'lib/ember-cli-rails.rb', line 41
def compile!
prepare!
each_app &:compile
end
|
#configuration ⇒ Object
16
17
18
|
# File 'lib/ember-cli-rails.rb', line 16
def configuration
Configuration.instance
end
|
12
13
14
|
# File 'lib/ember-cli-rails.rb', line 12
def configure
yield configuration
end
|
#enable! ⇒ Object
28
29
30
31
32
33
34
|
# File 'lib/ember-cli-rails.rb', line 28
def enable!
prepare!
if Helpers.non_production?
Rails.configuration.middleware.use Middleware
end
end
|
#prepare! ⇒ Object
20
21
22
23
24
25
26
|
# File 'lib/ember-cli-rails.rb', line 20
def prepare!
@prepared ||= begin
Rails.configuration.assets.paths << root.join("assets").to_s
at_exit{ cleanup }
true
end
end
|
#root ⇒ Object
54
55
56
|
# File 'lib/ember-cli-rails.rb', line 54
def root
@root ||= Rails.root.join("tmp", "ember-cli-#{uid}")
end
|
#run! ⇒ Object
36
37
38
39
|
# File 'lib/ember-cli-rails.rb', line 36
def run!
prepare!
each_app &:run
end
|
#stop! ⇒ Object
46
47
48
|
# File 'lib/ember-cli-rails.rb', line 46
def stop!
each_app &:stop
end
|
#wait! ⇒ Object
50
51
52
|
# File 'lib/ember-cli-rails.rb', line 50
def wait!
each_app &:wait
end
|