Module: EmberCli
- Extended by:
- EmberCli
- Included in:
- EmberCli
- Defined in:
- lib/ember_cli/app.rb,
lib/ember-cli-rails.rb,
lib/ember_cli/shell.rb,
lib/ember_cli/engine.rb,
lib/ember_cli/errors.rb,
lib/ember_cli/capture.rb,
lib/ember_cli/command.rb,
lib/ember_cli/helpers.rb,
lib/ember_cli/version.rb,
lib/ember_cli/path_set.rb,
lib/ember_cli/html_page.rb,
lib/ember_cli/sprockets.rb,
lib/ember_cli/constraint.rb,
lib/ember_cli/build_monitor.rb,
lib/ember_cli/configuration.rb,
lib/ember_cli/controller_extension.rb,
app/controller/ember_cli/ember_controller.rb,
lib/generators/ember-cli/init/init_generator.rb,
lib/generators/ember-cli/heroku/heroku_generator.rb
Defined Under Namespace
Modules: ControllerExtension, Helpers
Classes: App, BuildError, BuildMonitor, Capture, Command, Configuration, Constraint, DependencyError, EmberController, Engine, HerokuGenerator, HtmlPage, InitGenerator, PathSet, Shell, Sprockets
Constant Summary
collapse
- VERSION =
"0.5.3".freeze
Instance Method Summary
collapse
Instance Method Details
#app(name) ⇒ Object
Also known as:
[]
20
21
22
23
24
|
# File 'lib/ember-cli-rails.rb', line 20
def app(name)
apps.fetch(name) do
fail KeyError, "#{name.inspect} app is not defined"
end
end
|
#compile! ⇒ Object
50
51
52
53
|
# File 'lib/ember-cli-rails.rb', line 50
def compile!
enable!
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
32
33
34
35
36
37
38
|
# File 'lib/ember-cli-rails.rb', line 32
def enable!
@enabled ||= begin
Rails.configuration.assets.paths << root.join("assets").to_s
at_exit{ cleanup }
true
end
end
|
#install_dependencies! ⇒ Object
40
41
42
43
|
# File 'lib/ember-cli-rails.rb', line 40
def install_dependencies!
enable!
each_app(&:install_dependencies)
end
|
#root ⇒ Object
55
56
57
|
# File 'lib/ember-cli-rails.rb', line 55
def root
@root ||= Rails.root.join("tmp", "ember-cli-#{uid}")
end
|
#skip? ⇒ Boolean
28
29
30
|
# File 'lib/ember-cli-rails.rb', line 28
def skip?
ENV["SKIP_EMBER"].present?
end
|
#test! ⇒ Object
45
46
47
48
|
# File 'lib/ember-cli-rails.rb', line 45
def test!
enable!
each_app(&:test)
end
|