Class: Releasy::Deployers::Rsync

Inherits:
Deployer
  • Object
show all
Includes:
Mixins::Utilities
Defined in:
lib/releasy/deployers/rsync.rb

Overview

Deploys to a remote server, using the rsync command.

Examples:

Releasy::Project.new do
  name "My App"
  add_build :source
  add_package :zip
  add_deploy :rsync do
    destination "example.com:/var/www/sites/mysite/downloads" # Required.
  end
end

Constant Summary collapse

TYPE =
:rsync
DEFAULT_OPTIONS =
'-glpPrtvz'

Constants inherited from Deployer

Deployer::WORKING_CHARACTER

Constants included from Mixins::Log

Mixins::Log::DEFAULT_LOG_LEVEL, Mixins::Log::LOG_LEVELS

Instance Attribute Summary collapse

Attributes inherited from Deployer

#project

Method Summary

Methods inherited from Deployer

#initialize, #type

Methods included from Mixins::Log

log_level, log_level=

Constructor Details

This class inherits a constructor from Releasy::Deployers::Deployer

Instance Attribute Details

#destinationString

Location to deploy to, such as “example.com:/var/www/sites/mysite/downloads”.

Returns:

  • (String)

    the current value of destination



20
21
22
# File 'lib/releasy/deployers/rsync.rb', line 20

def destination
  @destination
end

#optionsString

(‘-glpPrtvz’) Options to pass to rsync.

Returns:

  • (String)

    the current value of options



20
21
22
# File 'lib/releasy/deployers/rsync.rb', line 20

def options
  @options
end