Sha256: c3961c53ab9465bbdb6d38dfd9f1611de8b0ef373fd0eeabb2de5a61aa32396e
Contents?: true
Size: 935 Bytes
Versions: 29
Compression:
Stored size: 935 Bytes
Contents
require 'task_support' namespace :radiant do namespace :config do desc "Export Radiant::Config to Rails.root/config/radiant_config.yml. Specify a path with RADIANT_CONFIG_PATH - defaults to Rails.root/config/radiant_config.yml" task :export => :environment do config_path = ENV['RADIANT_CONFIG_PATH'] || "#{Rails.root}/config/radiant_config.yml" clear = ENV['CLEAR_CONFIG'] || nil TaskSupport.config_export(config_path) end desc "Import Radiant::Config from Rails.root/config/radiant_config.yml. Specify a path with RADIANT_CONFIG_PATH - defaults to Rails.root/config/radiant_config.yml Set CLEAR_CONFIG=true to delete all existing settings before import" task :import => :environment do config_path = ENV['RADIANT_CONFIG_PATH'] || "#{Rails.root}/config/radiant_config.yml" clear = ENV['CLEAR_CONFIG'] || nil TaskSupport.config_import(config_path, clear) end end end
Version data entries
29 entries across 29 versions & 4 rubygems