Class: Backup::Storage::Ninefold

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/storage/ninefold.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#keep, #storage_id

Instance Method Summary collapse

Methods inherited from Base

#perform!

Methods included from Configuration::Helpers

#clear_defaults!, #load_defaults!

Constructor Details

#initialize(model, storage_id = nil, &block) ⇒ Ninefold

Creates a new instance of the storage object



21
22
23
24
25
26
27
# File 'lib/backup/storage/ninefold.rb', line 21

def initialize(model, storage_id = nil, &block)
  super(model, storage_id)

  @path ||= 'backups'

  instance_eval(&block) if block_given?
end

Instance Attribute Details

#pathObject

Ninefold directory path



17
18
19
# File 'lib/backup/storage/ninefold.rb', line 17

def path
  @path
end

#storage_secretObject

Ninefold Credentials



13
14
15
# File 'lib/backup/storage/ninefold.rb', line 13

def storage_secret
  @storage_secret
end

#storage_tokenObject

Ninefold Credentials



13
14
15
# File 'lib/backup/storage/ninefold.rb', line 13

def storage_token
  @storage_token
end