Sha256: 84d55ef8d04f2c90aee746c186e7667bd6b25d8d407189f0b1b18619e824bbed

Contents?: true

Size: 619 Bytes

Versions: 1

Compression:

Stored size: 619 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.relative_path_from(Rails.root)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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