Sha256: d76b759001f021b0e4ce77e73f92a65f3f80ea4e3bc723fdef070e64852700e4
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 Bytes
Contents
require 'fileutils' namespace :facebooker do desc "Create a basic facebooker.yml configuration file" task :setup => :environment do facebook_config = File.join(RAILS_ROOT,"config","facebooker.yml") unless File.exist?(facebook_config) FileUtils.cp File.join(RAILS_ROOT,"facebooker.yml.tpl"), facebook_config puts "Configuration created in #{RAILS_ROOT}/config/facebooker.yml" else puts "#{RAILS_ROOT}/config/facebooker.yml already exists" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facebooker-0.9.5 | lib/tasks/facebooker.rake |