class OdaniaStaticPages::Config::Deploy::Rsync

Attributes

rsync_options[R]
state_file[R]
targets[R]

Public Class Methods

new(targets: {green: '/tmp/rsync-deploy-test/blue', blue: '/tmp/rsync-deploy-test/blue'}, rsync_options: '-a --delete', state_file: '_current_state.yml') click to toggle source
# File lib/odania_static_pages/config/rsync.rb, line 7
def initialize(targets: {green: '/tmp/rsync-deploy-test/blue', blue: '/tmp/rsync-deploy-test/blue'},
                                                         rsync_options: '-a --delete', state_file: '_current_state.yml')
        @targets = targets
        @rsync_options = rsync_options
        @state_file = state_file
end

Public Instance Methods

to_h() click to toggle source
# File lib/odania_static_pages/config/rsync.rb, line 14
def to_h
        {
                targets: @targets,
                rsync_options: @rsync_options,
                state_file: @state_file
        }.stringify_keys!
end