class TrustyCms::TaskSupport
def config_export(path = "#{Rails.root}/config/radiant_config.yml")
def config_export(path = "#{Rails.root}/config/radiant_config.yml") self.establish_connection FileUtils.mkdir_p(File.dirname(path)) if File.open(File.expand_path(path), 'w') { |f| YAML.dump(TrustyCms::Config.to_hash.to_yaml,f) } puts "TrustyCms::Config saved to #{path}" end end