module FtpParadise::RoebeFtpConstants

Constants

A1
ARRAY_AVAILABLE_HOSTS
#

RoebeFtpConstants::ARRAY_AVAILABLE_HOSTS

All available hosts are kept in the following Array.

It is always available when the roebe_ftp.yml file was found.

Append to this Array if you add new entries above.

#
BPLACED
BYTEHOST
FTP_DATASET
PODSERVER
UCOZ
UNIVIE
UNIWIEN_HOMEPAGE
ZEROFEES
ZYMIX

Public Class Methods

file?() click to toggle source
#

FtpParadise::RoebeFtpConstants.file?

Feedback where that file is.

#
# File lib/ftp_paradise/constants/roebe_ftp_constants.rb, line 48
def self.file?
  FILE_ROEBE_FTP
end
geas?() click to toggle source
#

RoebeFtpConstants.geas?

#
# File lib/ftp_paradise/constants/roebe_ftp_constants.rb, line 205
def self.geas?
  GEAS
end
hash_ftp_dataset?() click to toggle source
#

FtpParadise::RoebeFtpConstants.hash_ftp_dataset?

#
# File lib/ftp_paradise/constants/roebe_ftp_constants.rb, line 55
def self.hash_ftp_dataset?
  @hash_ftp_dataset
end
possible_hosts?() click to toggle source
#

RoebeFtpConstants.possible_hosts?

#
# File lib/ftp_paradise/constants/roebe_ftp_constants.rb, line 198
def self.possible_hosts?
  ARRAY_AVAILABLE_HOSTS
end
return_user_name_based_on_given_host(i) click to toggle source
#

RoebeFtpConstants.return_user_name_based_on_given_host

This method may return the proper user name.

#
# File lib/ftp_paradise/constants/roebe_ftp_constants.rb, line 214
def self.return_user_name_based_on_given_host(i)
  if ARRAY_AVAILABLE_HOSTS.include? i
    i = PODSERVER[1] # Hardcoded for now. [1] is the user-name.
  end if FtpParadise.const_defined? :RoebeFtpConstants
  i
end