Sha256: c299e780d45ec0c3a4170496d6d7bf47e9b99196d4a116e8e440e1e4f9e697c0
Contents?: true
Size: 964 Bytes
Versions: 1
Compression:
Stored size: 964 Bytes
Contents
require 'trusty_cms/task_support' namespace :trusty_cms do namespace :config do desc 'Export TrustyCms::Config to Rails.root/config/trusty_config.yml. Specify a path with TRUSTY_CONFIG_PATH - defaults to Rails.root/config/trusty_config.yml' task export: :environment do config_path = ENV['TRUSTY_CONFIG_PATH'] || "#{Rails.root}/config/trusty_config.yml" clear = ENV.fetch('CLEAR_CONFIG', nil) TrustyCms::TaskSupport.config_export(config_path) end desc 'Import TrustyCms::Config from Rails.root/config/trusty_config.yml. Specify a path with TRUSTY_CONFIG_PATH - defaults to Rails.root/config/trusty_config.yml Set CLEAR_CONFIG=true to delete all existing settings before import' task import: :environment do config_path = ENV['TRUSTY_CONFIG_PATH'] || "#{Rails.root}/config/trusty_config.yml" clear = ENV.fetch('CLEAR_CONFIG', nil) TrustyCms::TaskSupport.config_import(config_path, clear) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trusty-cms-5.3.4 | lib/tasks/radiant_config.rake |