Class: EasyBackup::Configuration

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

Instance Method Summary collapse

Instance Method Details

#loggerObject



4
5
6
# File 'lib/easy_backup/configuration.rb', line 4

def logger
  @logger ||= Logger.new($stdout)
end

#logger=(logger) ⇒ Object



8
9
10
# File 'lib/easy_backup/configuration.rb', line 8

def logger=(logger)
  @logger = logger
end

#tmp_pathObject



12
13
14
# File 'lib/easy_backup/configuration.rb', line 12

def tmp_path
  @tmp_path ||= "#{ENV['tmp'].gsub('\\', '/')}/easy_backup"
end

#tmp_path=(path) ⇒ Object



16
17
18
# File 'lib/easy_backup/configuration.rb', line 16

def tmp_path=(path)
  @tmp_path = path
end