contrast / exceptional

This URL has Read+Write access

commit  ffafff4ba8b8db8e63557caac3778fd5a1c909e8
tree    f5412e32bb16914bf4d51087db3fa7f0e4b664e5
parent  e72e16a91860d20b1401f615a234478375cc377d
exceptional / install.rb
100644 20 lines (16 sloc) 0.812 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This is the post install hook for when Exceptional is installed as a plugin.
require 'ftools'
 
# puts IO.read(File.join(File.dirname(__FILE__), 'README'))
 
config_file = File.expand_path("#{File.dirname(__FILE__)}/../../../config/exceptional.yml")
example_config_file = "#{File.dirname(__FILE__)}/exceptional.yml"
 
if File::exists? config_file
  puts "Exceptional config file already exists. Please ensure it is up-to-date with the current format."
  puts "See #{example_config_file}"
else
  puts "Installing default Exceptional config"
  puts " From #{example_config_file}"
  puts "For exceptional to work you need to configure your API Key"
  puts " See #{example_config_file}"
  puts "If you don't have an API Key, get one at http://getexceptional.com/"
  File.copy example_config_file, config_file
end