79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# File 'lib/cli.rb', line 79
def generate_config
open_repository = yes?("Is this an open/public repository?")
if(open_repository)
say "Your campout settings will be added to ./config/campout.local.yml"
else
say "Your campout settings will be added to ./config/campout.yml"
end
campfire_settings = {'campfire' => {'domain' => 'domain', 'room' => 'room', 'token' => 'token'}}
campfire_settings['campfire']['domain'] = ask("Your campfire domain:")
campfire_settings['campfire']['room'] = ask("Your campfire room ID:").to_i
campfire_settings['campfire']['token'] = ask("Your campfire api token:")
copy_configs
add_campfire_settings(open_repository,campfire_settings)
add_local_to_gitignore
add_campout_to_deploy
end
|