public
Description: Badger is a simple Rails plugin that creates photo badges
Homepage: http://rayvinly.com/articles/2008/04/15/badger-rails-plugin/
Clone URL: git://github.com/rayvinly/badger.git
rayvinly (author)
Thu Jun 12 12:25:48 -0700 2008
commit  d9a228da6a976e3838055addb397a6068fab0695
tree    2551db293e708214b0a1e0459e233f1514c966a8
badger / install.rb
100644 8 lines (5 sloc) 0.241 kb
1
2
3
4
5
6
7
8
require 'fileutils'
 
source = File.join(directory, 'badger.yml')
destination = File.join(directory, '../../../config/badger.yml')
FileUtils.cp source, destination unless File.exist?(destination)
 
puts IO.read(File.join(directory, 'README'))