Class: DumpHook::Settings
- Inherits:
-
Object
- Object
- DumpHook::Settings
- Defined in:
- lib/dump_hook.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
Returns the value of attribute actual.
-
#database ⇒ Object
Returns the value of attribute database.
-
#database_type ⇒ Object
Returns the value of attribute database_type.
-
#dumps_location ⇒ Object
Returns the value of attribute dumps_location.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#recreate ⇒ Object
Returns the value of attribute recreate.
-
#remove_old_dumps ⇒ Object
Returns the value of attribute remove_old_dumps.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize ⇒ Settings
Returns a new instance of Settings.
17 18 19 20 21 22 23 |
# File 'lib/dump_hook.rb', line 17 def initialize @database = 'please set database' @database_type = 'postgres' @dumps_location = 'tmp/dump_hook' @remove_old_dumps = true @recreate = false end |
Instance Attribute Details
#actual ⇒ Object
Returns the value of attribute actual.
6 7 8 |
# File 'lib/dump_hook.rb', line 6 def actual @actual end |
#database ⇒ Object
Returns the value of attribute database.
6 7 8 |
# File 'lib/dump_hook.rb', line 6 def database @database end |
#database_type ⇒ Object
Returns the value of attribute database_type.
6 7 8 |
# File 'lib/dump_hook.rb', line 6 def database_type @database_type end |
#dumps_location ⇒ Object
Returns the value of attribute dumps_location.
6 7 8 |
# File 'lib/dump_hook.rb', line 6 def dumps_location @dumps_location end |
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/dump_hook.rb', line 6 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
6 7 8 |
# File 'lib/dump_hook.rb', line 6 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
6 7 8 |
# File 'lib/dump_hook.rb', line 6 def port @port end |
#recreate ⇒ Object
Returns the value of attribute recreate.
6 7 8 |
# File 'lib/dump_hook.rb', line 6 def recreate @recreate end |
#remove_old_dumps ⇒ Object
Returns the value of attribute remove_old_dumps.
6 7 8 |
# File 'lib/dump_hook.rb', line 6 def remove_old_dumps @remove_old_dumps end |
#username ⇒ Object
Returns the value of attribute username.
6 7 8 |
# File 'lib/dump_hook.rb', line 6 def username @username end |