Module: EmberCLI
- Extended by:
- EmberCLI
- Included in:
- EmberCLI
- Defined in:
- lib/ember-cli/app.rb,
lib/ember-cli-rails.rb,
lib/ember-cli/engine.rb,
lib/ember-cli/helpers.rb,
lib/ember-cli/version.rb,
lib/ember-cli/path_set.rb,
lib/ember-cli/middleware.rb,
lib/ember-cli/configuration.rb,
lib/generators/ember-cli/init/init_generator.rb
Defined Under Namespace
Modules: Helpers
Classes: App, Configuration, Engine, InitGenerator, Middleware, PathSet
Constant Summary
collapse
- VERSION =
"0.2.1".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
60
61
62
63
|
# File 'lib/ember-cli-rails.rb', line 60
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
40
41
42
43
|
# File 'lib/ember-cli-rails.rb', line 40
def enable!
prepare!
append_middleware unless env.production?
end
|
#install_dependencies! ⇒ Object
45
46
47
48
|
# File 'lib/ember-cli-rails.rb', line 45
def install_dependencies!
prepare!
each_app &:install_dependencies
end
|
#prepare! ⇒ Object
32
33
34
35
36
37
38
|
# File 'lib/ember-cli-rails.rb', line 32
def prepare!
@prepared ||= begin
Rails.configuration.assets.paths << root.join("assets").to_s
at_exit{ cleanup }
true
end
end
|
#root ⇒ Object
73
74
75
|
# File 'lib/ember-cli-rails.rb', line 73
def root
@root ||= Rails.root.join("tmp", "ember-cli-#{uid}")
end
|
#run! ⇒ Object
50
51
52
53
|
# File 'lib/ember-cli-rails.rb', line 50
def run!
prepare!
each_app &:run
end
|
#run_tests! ⇒ Object
55
56
57
58
|
# File 'lib/ember-cli-rails.rb', line 55
def run_tests!
prepare!
each_app &:run_tests
end
|
#skip? ⇒ Boolean
28
29
30
|
# File 'lib/ember-cli-rails.rb', line 28
def skip?
ENV["SKIP_EMBER"].present?
end
|
#stop! ⇒ Object
65
66
67
|
# File 'lib/ember-cli-rails.rb', line 65
def stop!
each_app &:stop
end
|
#wait! ⇒ Object
69
70
71
|
# File 'lib/ember-cli-rails.rb', line 69
def wait!
each_app &:wait
end
|