Sha256: a3b7d5dc672aeeb05779d1823991ddc1cd4e0d1fda3552d97131f996d1301498
Contents?: true
Size: 599 Bytes
Versions: 3
Compression:
Stored size: 599 Bytes
Contents
require 'fileutils' namespace :fgraph do desc "Create fgraph.yml configuration file in Rails config folder" task :setup => :environment do fgraph_config = File.join(RAILS_ROOT, "config", "fgraph.yml") unless File.exist?(fgraph_config) fgraph_config_template = File.join(RAILS_ROOT, "vendor", "plugins", "fgraph", "templates", "fgraph.yml") FileUtils.cp fgraph_config_template, fgraph_config puts "#{RAILS_ROOT}/config/fgraph.yml created, please update your app_id and app_secret." else puts "#{RAILS_ROOT}/config/fgraph.yml already exists." end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fgraph-0.3.2 | lib/tasks/fgraph.rake |
fgraph-0.3.1 | lib/tasks/fgraph.rake |
fgraph-0.3.0 | lib/tasks/fgraph.rake |