зеркало из https://github.com/microsoft/fog.git
remove no longer needed initialize definitions
This commit is contained in:
Родитель
93bcf8ca13
Коммит
2cb26510ff
|
@ -7,10 +7,6 @@ module Fog
|
|||
attribute :instance_id, 'instanceId'
|
||||
attribute :public_ip, 'publicIp'
|
||||
|
||||
def initialize(attributes = {})
|
||||
super
|
||||
end
|
||||
|
||||
def delete
|
||||
connection.release_address(@public_ip)
|
||||
true
|
||||
|
|
|
@ -8,10 +8,6 @@ module Fog
|
|||
attribute :material, 'keyMaterial'
|
||||
attribute :name, 'keyName'
|
||||
|
||||
def initialize(attributes = {})
|
||||
super
|
||||
end
|
||||
|
||||
def delete
|
||||
connection.delete_key_pair(@name)
|
||||
true
|
||||
|
|
|
@ -9,10 +9,6 @@ module Fog
|
|||
attribute :name, 'Name'
|
||||
attribute :owner
|
||||
|
||||
def initialize(attributes = {})
|
||||
super
|
||||
end
|
||||
|
||||
def buckets
|
||||
@buckets
|
||||
end
|
||||
|
|
|
@ -14,10 +14,6 @@ module Fog
|
|||
attribute :size, 'Size'
|
||||
attribute :storage_class, 'StorageClass'
|
||||
|
||||
def initialize(attributes = {})
|
||||
super
|
||||
end
|
||||
|
||||
def bucket
|
||||
@bucket
|
||||
end
|
||||
|
|
|
@ -9,10 +9,6 @@ module Fog
|
|||
attribute :max_keys, 'MaxKeys'
|
||||
attribute :prefix, 'Prefix'
|
||||
|
||||
def initialize(attributes = {})
|
||||
super
|
||||
end
|
||||
|
||||
def all(options = {})
|
||||
merge_attributes(options)
|
||||
bucket.buckets.get(bucket.name, attributes).objects
|
||||
|
|
Загрузка…
Ссылка в новой задаче