Sha256: 70b2883b6af3a4b1f7b2268b04862f6c8f1a00c52cd2fbfade29cb6370a8a1c4

Contents?: true

Size: 977 Bytes

Versions: 8

Compression:

Stored size: 977 Bytes

Contents

######################################################################
#                             DB DEFAULTS                            #
######################################################################
Capistrano::Configuration.instance(:must_exist).load do
  namespace :capabilities do
    namespace :defaults do
      desc "[internal] Sets intelligent defaults for DB deployments."
      task :db do
        _cset :skip_backup_before_migration,  false

        _cset :db_backups_path,               "#{shared_path}/db_backups"
        _cset :db_backup_file_extension,      "dump.sql"

        _cset :autocompress_db_backups,       true

        set(:latest_db_backup_file)           {capture("ls #{db_backups_path} -1t | head -n 1").chomp}
        set(:latest_db_backup)                {"#{db_backups_path}/#{latest_db_backup_file}"}

        _cset :limit_db_backups,              true
        _cset :total_db_backup_limit,         100
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
chicken_soup-0.9.0 lib/chicken_soup/capabilities/shared/db-defaults.rb
chicken_soup-0.8.6 lib/chicken_soup/capabilities/shared/db-defaults.rb
chicken_soup-0.8.5 lib/chicken_soup/capabilities/shared/db-defaults.rb
chicken_soup-0.8.4 lib/chicken_soup/capabilities/shared/db-defaults.rb
chicken_soup-0.8.3 lib/chicken_soup/capabilities/shared/db-defaults.rb
chicken_soup-0.8.2 lib/chicken_soup/capabilities/shared/db-defaults.rb
chicken_soup-0.8.1 lib/chicken_soup/capabilities/shared/db-defaults.rb
chicken_soup-0.8.0 lib/chicken_soup/capabilities/shared/db-defaults.rb