Sha256: 5efdb8bb3f789198f403d9cd6e55890b5d4b8a15ed800ded96ca84a5bde4f1c2

Contents?: true

Size: 624 Bytes

Versions: 15

Compression:

Stored size: 624 Bytes

Contents

module EmberCli
  class HerokuGenerator < Rails::Generators::Base
    source_root File.expand_path("../templates", __FILE__)

    namespace "ember:heroku"

    def copy_package_json_file
      template "package.json.erb", "package.json"
    end

    def copy_setup_heroku_file
      template "bin_heroku_install.erb", "bin/heroku_install"
      run "chmod a+x bin/heroku_install"
    end

    def inject_12factor_gem
      gem "rails_12factor", group: [:staging, :production]
    end

    def app_paths
      EmberCli.apps.values.map do |app|
        app.root_path.relative_path_from(Rails.root)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ember-cli-rails-0.9.0 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.8.7 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.8.6 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.8.5 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.8.4 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.8.3 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.8.2 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.8.1 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.8.0 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.7.4 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.7.3 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.7.2 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.7.1 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.7.0 lib/generators/ember/heroku/heroku_generator.rb
ember-cli-rails-0.6.1 lib/generators/ember/heroku/heroku_generator.rb