Sha256: b0ec690014d8eab7b5525ef941f6d529a5fb1b0fdd5c975c9242e16e4e4ecc16

Contents?: true

Size: 623 Bytes

Versions: 2

Compression:

Stored size: 623 Bytes

Contents

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

    namespace "ember-cli: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.relative_path_from(Rails.root)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ember-cli-rails-0.4.3 lib/generators/ember-cli/heroku/heroku_generator.rb
ember-cli-rails-0.4.2 lib/generators/ember-cli/heroku/heroku_generator.rb