Module: EmberCli
- Extended by:
- EmberCli
- Included in:
- EmberCli
- Defined in:
- lib/ember_cli.rb,
lib/ember_cli/app.rb,
lib/ember_cli/shell.rb,
lib/ember_cli/engine.rb,
lib/ember_cli/errors.rb,
lib/ember_cli/runner.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/deploy/file.rb,
lib/ember_cli/build_monitor.rb,
lib/ember_cli/configuration.rb,
lib/ember_cli/ember_constraint.rb,
lib/ember_cli/trailing_slash_constraint.rb,
lib/generators/ember/init/init_generator.rb,
app/controller/ember_cli/ember_controller.rb,
lib/generators/ember/heroku/heroku_generator.rb
Defined Under Namespace
Modules: Deploy, Helpers
Classes: App, BuildError, BuildMonitor, Command, Configuration, DependencyError, EmberConstraint, EmberController, Engine, HerokuGenerator, InitGenerator, PathSet, Runner, Shell, TrailingSlashConstraint
Constant Summary
collapse
- VERSION =
"0.11.0".freeze
Instance Method Summary
collapse
Instance Method Details
#any?(*arguments, &block) ⇒ Boolean
34
35
36
|
# File 'lib/ember_cli.rb', line 34
def any?(*arguments, &block)
apps.values.any?(*arguments, &block)
end
|
#app(name) ⇒ Object
Also known as:
[]
19
20
21
22
23
|
# File 'lib/ember_cli.rb', line 19
def app(name)
apps.fetch(name) do
fail KeyError, "#{name.inspect} app is not defined"
end
end
|
#apps ⇒ Object
26
27
28
|
# File 'lib/ember_cli.rb', line 26
def apps
configuration.apps
end
|
#build(name) ⇒ Object
30
31
32
|
# File 'lib/ember_cli.rb', line 30
def build(name)
app(name).build
end
|
#compile! ⇒ Object
50
51
52
53
|
# File 'lib/ember_cli.rb', line 50
def compile!
cleanup!
each_app(&:compile)
end
|
#configuration ⇒ Object
15
16
17
|
# File 'lib/ember_cli.rb', line 15
def configuration
Configuration.instance
end
|
11
12
13
|
# File 'lib/ember_cli.rb', line 11
def configure
yield configuration
end
|
#install_dependencies! ⇒ Object
42
43
44
|
# File 'lib/ember_cli.rb', line 42
def install_dependencies!
each_app(&:install_dependencies)
end
|
#root ⇒ Object
55
56
57
|
# File 'lib/ember_cli.rb', line 55
def root
@root ||= Rails.root.join("tmp", "ember-cli").tap(&:mkpath)
end
|
#skip? ⇒ Boolean
38
39
40
|
# File 'lib/ember_cli.rb', line 38
def skip?
ENV["SKIP_EMBER"].present?
end
|
#test! ⇒ Object
46
47
48
|
# File 'lib/ember_cli.rb', line 46
def test!
each_app(&:test)
end
|