Module: EasyBackup

Defined in:
lib/easy_backup.rb,
lib/easy_backup/version.rb,
lib/easy_backup/configuration.rb,
lib/easy_backup/specification.rb,
lib/easy_backup/resources/sftp.rb,
lib/easy_backup/resources/postgres.rb,
lib/easy_backup/resources/file_system.rb

Defined Under Namespace

Modules: Resources Classes: Configuration, Specification

Constant Summary collapse

VERSION =
'0.0.8'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.configurationObject



21
22
23
# File 'lib/easy_backup.rb', line 21

def self.configuration
  @@configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



25
26
27
# File 'lib/easy_backup.rb', line 25

def self.configure
  yield(configuration)
end

Instance Method Details

#schedulerObject



29
30
31
# File 'lib/easy_backup.rb', line 29

def scheduler
  @@scheduler ||= Rufus::Scheduler.start_new
end