Sha256: 2413d6faad4703ea62e4375c431bedc2fedf5c359724a4024a35c6b935487ac7
Contents?: true
Size: 956 Bytes
Versions: 35
Compression:
Stored size: 956 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['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['CLEAR_CONFIG'] || nil TrustyCms::TaskSupport.config_import(config_path, clear) end end end
Version data entries
35 entries across 35 versions & 1 rubygems