Class: PgUtils::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/pg_utils/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
# File 'lib/pg_utils/configuration.rb', line 7

def initialize
  self.instance_variables.each do |var|
    instance_variable_set("@#{var}", nil)
  end
  @ssh_port ||= 22
end

Instance Attribute Details

#local_databaseObject

Returns the value of attribute local_database.



3
4
5
# File 'lib/pg_utils/configuration.rb', line 3

def local_database
  @local_database
end

#local_database_passwordObject

Returns the value of attribute local_database_password.



3
4
5
# File 'lib/pg_utils/configuration.rb', line 3

def local_database_password
  @local_database_password
end

#local_database_usernameObject

Returns the value of attribute local_database_username.



3
4
5
# File 'lib/pg_utils/configuration.rb', line 3

def local_database_username
  @local_database_username
end

#local_folderObject

Returns the value of attribute local_folder.



3
4
5
# File 'lib/pg_utils/configuration.rb', line 3

def local_folder
  @local_folder
end

#remote_backup_folderObject

Returns the value of attribute remote_backup_folder.



3
4
5
# File 'lib/pg_utils/configuration.rb', line 3

def remote_backup_folder
  @remote_backup_folder
end

#remote_database_nameObject

Returns the value of attribute remote_database_name.



3
4
5
# File 'lib/pg_utils/configuration.rb', line 3

def remote_database_name
  @remote_database_name
end

#remote_database_passwordObject

Returns the value of attribute remote_database_password.



3
4
5
# File 'lib/pg_utils/configuration.rb', line 3

def remote_database_password
  @remote_database_password
end

#remote_database_usernameObject

Returns the value of attribute remote_database_username.



3
4
5
# File 'lib/pg_utils/configuration.rb', line 3

def remote_database_username
  @remote_database_username
end

#ssh_hostObject

Returns the value of attribute ssh_host.



3
4
5
# File 'lib/pg_utils/configuration.rb', line 3

def ssh_host
  @ssh_host
end

#ssh_passwordObject

Returns the value of attribute ssh_password.



3
4
5
# File 'lib/pg_utils/configuration.rb', line 3

def ssh_password
  @ssh_password
end

#ssh_portObject

Returns the value of attribute ssh_port.



3
4
5
# File 'lib/pg_utils/configuration.rb', line 3

def ssh_port
  @ssh_port
end

#ssh_userObject

Returns the value of attribute ssh_user.



3
4
5
# File 'lib/pg_utils/configuration.rb', line 3

def ssh_user
  @ssh_user
end