Sha256: cfac3903eccd60699f0b55337f14d62fac908961a5df5cc65f5f1f6f633395da
Contents?: true
Size: 896 Bytes
Versions: 4
Compression:
Stored size: 896 Bytes
Contents
require 'rails/generators' require 'rails/generators/base' require 'startling' module StartlingTrello module Generators class ConfigurationGenerator < Rails::Generators::Base def create_config_file generate 'startling:configuration' file_name = Startling::Configuration::DEFAULT_STARTLINGFILES[0] inject_into_file file_name, before: 'Startling.configure do |config|' do <<CONFIG require 'startling_trello' CONFIG end gsub_file file_name, '# config.story_handler = :pivotal_start', 'config.story_handler = :trello_start' inject_into_file file_name, after: 'config.story_handler = :trello_start' do <<CONFIG # Trello Developer API key # config.developer_public_key = 'developer-public-key' # Trello Doing List ID # config.doing_list_id = 'doing-list-id' CONFIG end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems