Class: PgUtils::Configuration
- Inherits:
-
Object
- Object
- PgUtils::Configuration
- Defined in:
- lib/pg_utils/configuration.rb
Instance Attribute Summary collapse
-
#local_database ⇒ Object
Returns the value of attribute local_database.
-
#local_database_password ⇒ Object
Returns the value of attribute local_database_password.
-
#local_database_username ⇒ Object
Returns the value of attribute local_database_username.
-
#local_folder ⇒ Object
Returns the value of attribute local_folder.
-
#remote_backup_folder ⇒ Object
Returns the value of attribute remote_backup_folder.
-
#remote_database_name ⇒ Object
Returns the value of attribute remote_database_name.
-
#remote_database_password ⇒ Object
Returns the value of attribute remote_database_password.
-
#remote_database_username ⇒ Object
Returns the value of attribute remote_database_username.
-
#ssh_host ⇒ Object
Returns the value of attribute ssh_host.
-
#ssh_password ⇒ Object
Returns the value of attribute ssh_password.
-
#ssh_port ⇒ Object
Returns the value of attribute ssh_port.
-
#ssh_user ⇒ Object
Returns the value of attribute ssh_user.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_database ⇒ Object
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_password ⇒ Object
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_username ⇒ Object
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_folder ⇒ Object
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_folder ⇒ Object
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_name ⇒ Object
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_password ⇒ Object
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_username ⇒ Object
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_host ⇒ Object
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_password ⇒ Object
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_port ⇒ Object
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_user ⇒ Object
Returns the value of attribute ssh_user.
3 4 5 |
# File 'lib/pg_utils/configuration.rb', line 3 def ssh_user @ssh_user end |