module Snapshotar
Make a snapshot of your staging environment and pull back on your dev machine.
Constants
- VERSION
Attributes
configuration[RW]
Configuration
object. Create a snapshotar.rb initializer under config/initializers and add your configuation inside:
Snapshotar.configure do |config| config.storage_type = :file # :s3 config.models << [Event, :name, :date] config.models << [Artist, :name] end
Public Class Methods
configure() { |configuration| ... }
click to toggle source
# File lib/snapshotar.rb, line 30 def self.configure yield(configuration) if block_given? end
core()
click to toggle source
# File lib/snapshotar.rb, line 34 def self.core @core ||= Core.new end
create(name = nil)
click to toggle source
Create a snapshot
# File lib/snapshotar.rb, line 48 def self.create(name = nil) self.core.export(name) end
delete(name)
click to toggle source
Delete a snapshot
# File lib/snapshotar.rb, line 62 def self.delete(name) self.core.delete(name) end
list()
click to toggle source
List available snapshots
# File lib/snapshotar.rb, line 41 def self.list self.core.list end
load(name)
click to toggle source
Load a snapshot
# File lib/snapshotar.rb, line 55 def self.load(name) self.core.import(name) end