8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/generators/startling_trello/configuration_generator.rb', line 8
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
"require 'startling_trello'\n\n"
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
"\n\n # Trello Developer API key\n # config.developer_public_key = 'developer-public-key'\n\n # Trello Doing List ID\n # config.doing_list_id = 'doing-list-id'\n"
end
end
|