Method: Fulmar::Infrastructure::Model::Transfer::RsyncWithVersions#prepare

Defined in:
lib/fulmar/infrastructure/model/transfer/rsync_with_versions.rb

#prepareObject

Ensures all needed services are set up



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/fulmar/infrastructure/model/transfer/rsync_with_versions.rb', line 47

def prepare
  super
  @remote_shell = Fulmar::Shell.new @config[:remote_path], @config.ssh_user_and_host
  @remote_shell.debug = @config[:debug]

  if @config[:version_name] == 'time'
    @config[:version_name] = Time.now.strftime(TIME_FOLDER)
  elsif /^[A-Z][A-Z0-9\-_]+$/ =~ @config[:version_name]
    @config[:version_name] = ENV[@config[:version_name]].split('/').last
  end
end