class RemoteDatabaseCleaner::RemotesConfig

Constants

DEFAULT_REMOTE_NAME

Attributes

current_remote[W]
remotes[RW]
to_hash[RW]

Public Class Methods

new() click to toggle source
# File lib/remote_database_cleaner/remotes_config.rb, line 13
def initialize
  @remotes = {}
end

Public Instance Methods

current_remote() click to toggle source
# File lib/remote_database_cleaner/remotes_config.rb, line 17
def current_remote
  @current_remote || default_remote_name
end
default_remote_name() click to toggle source
# File lib/remote_database_cleaner/remotes_config.rb, line 21
def default_remote_name
  DEFAULT_REMOTE_NAME
end
reset(config = Config.new) click to toggle source
# File lib/remote_database_cleaner/remotes_config.rb, line 25
def reset(config = Config.new)
  self.current_remote = default_remote_name
  self.remotes        = { default_remote_name => config}
end