Class: Backup::Storage::Aliyun

Inherits:
Base
  • Object
show all
Includes:
Storage::Cycler
Defined in:
lib/backup/storage/aliyun.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Aliyun.



11
12
13
14
15
16
17
# File 'lib/backup/storage/aliyun.rb', line 11

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

  @path ||= 'backups'

  instance_eval(&block) if block_given?
end

Instance Attribute Details

#access_key_idObject

Returns the value of attribute access_key_id.



9
10
11
# File 'lib/backup/storage/aliyun.rb', line 9

def access_key_id
  @access_key_id
end

#access_key_secretObject

Returns the value of attribute access_key_secret.



9
10
11
# File 'lib/backup/storage/aliyun.rb', line 9

def access_key_secret
  @access_key_secret
end

#aliyun_internalObject

Returns the value of attribute aliyun_internal.



9
10
11
# File 'lib/backup/storage/aliyun.rb', line 9

def aliyun_internal
  @aliyun_internal
end

#areaObject

Returns the value of attribute area.



9
10
11
# File 'lib/backup/storage/aliyun.rb', line 9

def area
  @area
end

#bucketObject

Returns the value of attribute bucket.



9
10
11
# File 'lib/backup/storage/aliyun.rb', line 9

def bucket
  @bucket
end

#pathObject

Returns the value of attribute path.



9
10
11
# File 'lib/backup/storage/aliyun.rb', line 9

def path
  @path
end