Sha256: a1a647bbead03523a452213253ba4cb7907fcbe7725b6fff10ff4120b2a2ce6f

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true

require_relative '../backup_helper'
namespace :backup do
  namespace :storage do
    include BackupHelper
    # Default to :app role
    rake_roles = fetch(:rake_roles, :app)
    
    desc 'create storage dump on server'
    task :create do
      on roles(rake_roles) do
        puts 'Creating backup...'
        execute "#{prepare_env} BACKUPS_ENABLED=true EXTERNAL_BACKUP_ENABLED=false bundle exec rake storage:backup"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-ops-0.2.4 lib/capistrano/ops/capistrano/v3/tasks/backup/storage/create.rake