Sha256: 55af85305f61d5ed659b691ab0eb27e808f1fb563dffa79b19923375419d1d60

Contents?: true

Size: 662 Bytes

Versions: 9

Compression:

Stored size: 662 Bytes

Contents

module Intercom
  module Generators
    class ConfigGenerator < ::Rails::Generators::Base

      def self.source_root
        File.dirname(__FILE__)
      end

      argument :app_id, :desc => "Your Intercom app-id, which can be found here: https://www.intercom.io/apps/api_keys"
      argument :api_secret, :desc => "Your Intercom api-secret, used for secure mode"
      argument :api_key, :desc => "An Intercom API key, for various rake tasks"

      def create_config_file
        @app_id = app_id
        @api_secret = api_secret
        @api_key = api_key

        template("intercom.rb.erb", "config/initializers/intercom.rb")
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
intercom-rails-0.2.4 lib/rails/generators/intercom/config/config_generator.rb
intercom-rails-0.2.3 lib/rails/generators/intercom/config/config_generator.rb
intercom-rails-0.2.2 lib/rails/generators/intercom/config/config_generator.rb
intercom-rails-0.2.1 lib/rails/generators/intercom/config/config_generator.rb
intercom-rails-0.2.0 lib/rails/generators/intercom/config/config_generator.rb
intercom-rails-0.1.1 lib/rails/generators/intercom/config/config_generator.rb
intercom-rails-0.1.0 lib/rails/generators/intercom/config/config_generator.rb
intercom-rails-0.0.9 lib/rails/generators/intercom/config/config_generator.rb
intercom-rails-0.0.8 lib/rails/generators/intercom/config/config_generator.rb