Sha256: 3d9570f0576143082e03d5df85c5ff548faf052f758f340f37459a41d4414fed

Contents?: true

Size: 972 Bytes

Versions: 43

Compression:

Stored size: 972 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.fetch('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

43 entries across 43 versions & 1 rubygems

Version Path
trusty-cms-7.0.10 lib/tasks/radiant_config.rake
trusty-cms-7.0.9 lib/tasks/radiant_config.rake
trusty-cms-7.0.8 lib/tasks/radiant_config.rake
trusty-cms-7.0.7 lib/tasks/radiant_config.rake
trusty-cms-7.0.6 lib/tasks/radiant_config.rake
trusty-cms-7.0.5 lib/tasks/radiant_config.rake
trusty-cms-7.0.4 lib/tasks/radiant_config.rake
trusty-cms-7.0.3 lib/tasks/radiant_config.rake
trusty-cms-6.3.1 lib/tasks/radiant_config.rake
trusty-cms-7.0.2 lib/tasks/radiant_config.rake
trusty-cms-7.0.1 lib/tasks/radiant_config.rake
trusty-cms-7.0.0 lib/tasks/radiant_config.rake
trusty-cms-6.3 lib/tasks/radiant_config.rake
trusty-cms-6.2.1 lib/tasks/radiant_config.rake
trusty-cms-6.2.2.1 lib/tasks/radiant_config.rake
trusty-cms-6.2.0 lib/tasks/radiant_config.rake
trusty-cms-6.1.2 lib/tasks/radiant_config.rake
trusty-cms-6.1.1 lib/tasks/radiant_config.rake
trusty-cms-6.0.5 lib/tasks/radiant_config.rake
trusty-cms-6.0.4 lib/tasks/radiant_config.rake