Sha256: 4236a43459b01fddc1ed89453d9cf60fb5875436479f488e6cab871a5760d90e
Contents?: true
Size: 727 Bytes
Versions: 3
Compression:
Stored size: 727 Bytes
Contents
require 'rake' namespace :hominid do # Task to create the config file desc "Generate a Hominid config file" task :config => :environment do |t| require 'fileutils' if defined?(Rails.root) config_file = File.join(Rails.root, 'config', 'hominid.yml') template_file = File.join(File.dirname(__FILE__), '..', '..', 'hominid.yml.tpl') unless File.exists? config_file FileUtils.cp( File.join(File.dirname(__FILE__), '..', '..', 'hominid.yml.tpl'), File.join(Rails.root, 'config', 'hominid.yml') ) puts 'Please edit config/hominid.yml to your needs.' else puts 'We left your existing config/hominid.yml untouched.' end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
babney-hominid-2.0.1 | tasks/rails/hominid.rake |
hominid-2.0.1 | tasks/rails/hominid.rake |
hominid-2.0.0 | tasks/rails/hominid.rake |