Sha256: e4f2fe2ce9acf2977fb148491ffaedcc2e1c05f509ba29a99136bec385a17dcb
Contents?: true
Size: 700 Bytes
Versions: 7
Compression:
Stored size: 700 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", :optional => true argument :api_key, :desc => "An Intercom API key, for various rake tasks", :optional => true 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
7 entries across 7 versions & 1 rubygems