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/dev_server.rb,
lib/ember_cli/deploy/file.rb,
lib/ember_cli/build_monitor.rb,
lib/ember_cli/configuration.rb,
lib/ember_cli/dev_server_proxy.rb,
lib/ember_cli/ember_constraint.rb,
lib/ember_cli/deploy/dev_server.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, DevServer, DevServerProxy, EmberConstraint, EmberController, Engine, HerokuGenerator, InitGenerator, PathSet, Runner, Shell, TestFailureError, TrailingSlashConstraint
Constant Summary
collapse
- VERSION =
"0.14.2".freeze
Instance Method Summary
collapse
Instance Method Details
#any?(*arguments, &block) ⇒ Boolean
39
40
41
|
# File 'lib/ember_cli.rb', line 39
def any?(*arguments, &block)
apps.values.any?(*arguments, &block)
end
|
#app(name) ⇒ Object
Also known as:
[]
24
25
26
27
28
|
# File 'lib/ember_cli.rb', line 24
def app(name)
apps.fetch(name) do
fail KeyError, "#{name.inspect} app is not defined"
end
end
|
#apps ⇒ Object
31
32
33
|
# File 'lib/ember_cli.rb', line 31
def apps
configuration.apps
end
|
#build(name) ⇒ Object
35
36
37
|
# File 'lib/ember_cli.rb', line 35
def build(name)
app(name).build
end
|
#compile! ⇒ Object
59
60
61
62
|
# File 'lib/ember_cli.rb', line 59
def compile!
cleanup!
each_app(&:compile)
end
|
#configuration ⇒ Object
16
17
18
|
# File 'lib/ember_cli.rb', line 16
def configuration
Configuration.instance
end
|
12
13
14
|
# File 'lib/ember_cli.rb', line 12
def configure
yield configuration
end
|
#deprecator ⇒ Object
20
21
22
|
# File 'lib/ember_cli.rb', line 20
def deprecator
@deprecator ||= ActiveSupport::Deprecation.new("1.0", "ember-cli-rails")
end
|
#install_dependencies! ⇒ Object
47
48
49
|
# File 'lib/ember_cli.rb', line 47
def install_dependencies!
each_app(&:install_dependencies)
end
|
#root ⇒ Object
64
65
66
|
# File 'lib/ember_cli.rb', line 64
def root
@root ||= Rails.root.join("tmp", "ember-cli").tap(&:mkpath)
end
|
#skip? ⇒ Boolean
43
44
45
|
# File 'lib/ember_cli.rb', line 43
def skip?
ENV["SKIP_EMBER"].present?
end
|
#test! ⇒ Object
51
52
53
54
55
56
57
|
# File 'lib/ember_cli.rb', line 51
def test!
each_app do |app|
unless app.test
fail TestFailureError, "The Ember test suite failed for #{app.name.inspect}"
end
end
end
|