Class: DumpHook::Settings

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSettings

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

#actualObject

Returns the value of attribute actual.



6
7
8
# File 'lib/dump_hook.rb', line 6

def actual
  @actual
end

#databaseObject

Returns the value of attribute database.



6
7
8
# File 'lib/dump_hook.rb', line 6

def database
  @database
end

#database_typeObject

Returns the value of attribute database_type.



6
7
8
# File 'lib/dump_hook.rb', line 6

def database_type
  @database_type
end

#dumps_locationObject

Returns the value of attribute dumps_location.



6
7
8
# File 'lib/dump_hook.rb', line 6

def dumps_location
  @dumps_location
end

#hostObject

Returns the value of attribute host.



6
7
8
# File 'lib/dump_hook.rb', line 6

def host
  @host
end

#passwordObject

Returns the value of attribute password.



6
7
8
# File 'lib/dump_hook.rb', line 6

def password
  @password
end

#portObject

Returns the value of attribute port.



6
7
8
# File 'lib/dump_hook.rb', line 6

def port
  @port
end

#recreateObject

Returns the value of attribute recreate.



6
7
8
# File 'lib/dump_hook.rb', line 6

def recreate
  @recreate
end

#remove_old_dumpsObject

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

#usernameObject

Returns the value of attribute username.



6
7
8
# File 'lib/dump_hook.rb', line 6

def username
  @username
end