Sha256: 92471d715317a74b72bc787890cb4fcb45e13e25d01ff85a46ba6af9f578a7ce

Contents?: true

Size: 962 Bytes

Versions: 16

Compression:

Stored size: 962 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

16 entries across 16 versions & 1 rubygems

Version Path
trusty-cms-4.1.2 lib/tasks/radiant_config.rake
trusty-cms-4.1.1 lib/tasks/radiant_config.rake
trusty-cms-4.1.0 lib/tasks/radiant_config.rake
trusty-cms-4.0.2 lib/tasks/radiant_config.rake
trusty-cms-3.9.7 lib/tasks/radiant_config.rake
trusty-cms-3.9.6 lib/tasks/radiant_config.rake
trusty-cms-3.9.5 lib/tasks/radiant_config.rake
trusty-cms-4.0.1 lib/tasks/radiant_config.rake
trusty-cms-3.9.4 lib/tasks/radiant_config.rake
trusty-cms-3.9.3 lib/tasks/radiant_config.rake
trusty-cms-3.9.2 lib/tasks/radiant_config.rake
trusty-cms-4.0.0 lib/tasks/radiant_config.rake
trusty-cms-3.9.1 lib/tasks/radiant_config.rake
trusty-cms-3.9.0 lib/tasks/radiant_config.rake
trusty-cms-3.8.4 lib/tasks/radiant_config.rake
trusty-cms-3.8.3 lib/tasks/radiant_config.rake