Sha256: 60535a27459b1ff313ad946ac2db5f1e8893f8489dd30e2f54e15025deb1a539
Contents?: true
Size: 601 Bytes
Versions: 2
Compression:
Stored size: 601 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_teirmplate, 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fgraph-0.2.1 | lib/tasks/fgraph.rake |
fgraph-0.2.0 | lib/tasks/fgraph.rake |