Skip to content

Commit

Permalink
Rename generator namespace
Browse files Browse the repository at this point in the history
Make new `rails generate` namespace match the Rake tasks and
`config/initializer/ember.rb`.
  • Loading branch information
seanpdoyle committed Dec 10, 2015
1 parent 2a92674 commit e92bfec
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
master
------

* Rename generator namespace from `ember-cli` to `ember`.
* Ensure `Rails.root.join("log")` exists when writing to logs.
* Remove deprecated `include_ember_index_html` helper and deprecated
`build_timeout` and `enabled` configurations. [#334]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $ bundle install
First, generate the gem's initializer:

```bash
$ rails generate ember-cli:init
$ rails generate ember:init
```

This will create the following initializer:
Expand Down Expand Up @@ -354,9 +354,9 @@ directories %w[app config lib spec your-appname/app]

To configure your Ember CLI Rails app to be ready to deploy on Heroku:

1. Run `rails g ember-cli:heroku` generator
1. Execute `rails generate ember:heroku`
1. [Add the NodeJS buildpack][buildpack] and configure NPM to include the
`bower` dependency's executable file.
`bower` dependency's executable file:

```sh
$ heroku buildpacks:clear
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/ember-cli/heroku/USAGE
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Description:
$ heroku config:unset SKIP_EMBER

Example:
rails generate ember-cli:heroku
rails generate ember:heroku

This will install the following gems:
rails_12factor
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/ember-cli/heroku/heroku_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module EmberCli
class HerokuGenerator < Rails::Generators::Base
source_root File.expand_path("../templates", __FILE__)

namespace "ember-cli:heroku"
namespace "ember:heroku"

def copy_package_json_file
template "package.json.erb", "package.json"
Expand Down
4 changes: 2 additions & 2 deletions lib/generators/ember-cli/init/USAGE
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Description:
Generates ember cli initializer. The initializer sets up where the EmberCli application will live (by default in app/frontend)
Generates `ember-cli` initializer.

Example:
rails generate ember-cli:init
rails generate ember:init

This will create:
config/initializers/ember.rb
2 changes: 1 addition & 1 deletion lib/generators/ember-cli/init/init_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module EmberCli
class InitGenerator < Rails::Generators::Base
source_root File.expand_path("../templates", __FILE__)

namespace "ember-cli:init"
namespace "ember:init"

def copy_initializer_file
copy_file "initializer.rb", "config/initializers/ember.rb"
Expand Down

0 comments on commit e92bfec

Please sign in to comment.