mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
removing more deprecated stuff
This commit is contained in:
parent
b6af64d76a
commit
70af200dda
16 changed files with 1 additions and 74 deletions
|
@ -17,7 +17,7 @@ class AWS < Fog::Bin
|
|||
Fog::AWS::SimpleDB
|
||||
when :ses
|
||||
Fog::AWS::SES
|
||||
when :eu_storage, :s3, :storage
|
||||
when :eu_storage, :storage
|
||||
Fog::AWS::Storage
|
||||
else
|
||||
# @todo Replace most instances of ArgumentError with NotImplementedError
|
||||
|
@ -46,12 +46,6 @@ class AWS < Fog::Bin
|
|||
Fog::AWS::SimpleDB.new
|
||||
when :ses
|
||||
Fog::AWS::SES.new
|
||||
when :s3
|
||||
location = caller.first
|
||||
warning = "[yellow][WARN] AWS[:s3] is deprecated, use AWS[:storage] instead[/]"
|
||||
warning << " [light_black](" << location << ")[/] "
|
||||
Formatador.display_line(warning)
|
||||
Fog::Storage.new(:provider => 'AWS')
|
||||
when :storage
|
||||
Fog::Storage.new(:provider => 'AWS')
|
||||
else
|
||||
|
|
|
@ -5,8 +5,6 @@ module Fog
|
|||
class Compute
|
||||
|
||||
class KeyPair < Fog::Model
|
||||
extend Fog::Deprecation
|
||||
deprecate(:material, :private_key)
|
||||
|
||||
identity :name, :aliases => 'keyName'
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@ module Fog
|
|||
class Compute
|
||||
|
||||
class Snapshot < Fog::Model
|
||||
extend Fog::Deprecation
|
||||
deprecate(:status, :state)
|
||||
|
||||
identity :id, :aliases => 'snapshotId'
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@ module Fog
|
|||
class Compute
|
||||
|
||||
class Volume < Fog::Model
|
||||
extend Fog::Deprecation
|
||||
deprecate(:status, :state)
|
||||
|
||||
identity :id, :aliases => 'volumeId'
|
||||
|
||||
|
|
|
@ -7,11 +7,6 @@ module Fog
|
|||
class BlockInstantiationError < StandardError; end
|
||||
|
||||
class Server < Fog::Model
|
||||
extend Fog::Deprecation
|
||||
deprecate(:ssh_key, :public_key)
|
||||
deprecate(:ssh_key=, :public_key=)
|
||||
deprecate(:user, :username)
|
||||
deprecate(:user=, :username=)
|
||||
|
||||
identity :id
|
||||
|
||||
|
|
|
@ -1,19 +1,3 @@
|
|||
module Fog
|
||||
module Rackspace
|
||||
class Servers
|
||||
|
||||
def self.new(attributes = {})
|
||||
location = caller.first
|
||||
warning = "[yellow][WARN] Fog::Rackspace::Servers#new is deprecated, use Fog::Rackspace::Compute#new instead[/]"
|
||||
warning << " [light_black](" << location << ")[/] "
|
||||
Formatador.display_line(warning)
|
||||
Fog::Rackspace::Compute.new(attributes)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
module Fog
|
||||
module Rackspace
|
||||
class Compute < Fog::Service
|
||||
|
|
|
@ -2,8 +2,6 @@ require 'yaml'
|
|||
|
||||
module Fog
|
||||
require 'fog/core/deprecation'
|
||||
extend Fog::Deprecation
|
||||
self_deprecate(:config_path, :credentials_path)
|
||||
|
||||
# Assign a new credential to use from configuration file
|
||||
# @param [String, Symbol] new_credential name of new credential to use
|
||||
|
|
|
@ -206,8 +206,6 @@ module Fog
|
|||
|
||||
class Real
|
||||
include Utils
|
||||
extend Fog::Deprecation
|
||||
deprecate(:reset, :reload)
|
||||
|
||||
# Initialize connection to S3
|
||||
#
|
||||
|
|
|
@ -167,8 +167,6 @@ module Fog
|
|||
|
||||
class Real
|
||||
include Utils
|
||||
extend Fog::Deprecation
|
||||
deprecate(:reset, :reload)
|
||||
|
||||
# Initialize connection to Google Storage
|
||||
#
|
||||
|
|
|
@ -6,9 +6,6 @@ module Fog
|
|||
class Storage
|
||||
|
||||
class Directory < Fog::Model
|
||||
extend Fog::Deprecation
|
||||
deprecate(:name, :key)
|
||||
deprecate(:name=, :key=)
|
||||
|
||||
identity :key, :aliases => ['Name', 'name']
|
||||
|
||||
|
|
|
@ -5,9 +5,6 @@ module Fog
|
|||
class Storage
|
||||
|
||||
class File < Fog::Model
|
||||
extend Fog::Deprecation
|
||||
deprecate(:size, :content_length)
|
||||
deprecate(:size=, :content_length=)
|
||||
|
||||
identity :key, :aliases => 'Key'
|
||||
|
||||
|
|
|
@ -6,9 +6,6 @@ module Fog
|
|||
class Storage
|
||||
|
||||
class Directory < Fog::Model
|
||||
extend Fog::Deprecation
|
||||
deprecate(:name, :key)
|
||||
deprecate(:name=, :key=)
|
||||
|
||||
identity :key, :aliases => ['Name', 'name']
|
||||
|
||||
|
|
|
@ -5,9 +5,6 @@ module Fog
|
|||
class Storage
|
||||
|
||||
class File < Fog::Model
|
||||
extend Fog::Deprecation
|
||||
deprecate(:size, :content_length)
|
||||
deprecate(:size=, :content_length=)
|
||||
|
||||
identity :key, :aliases => 'Key'
|
||||
|
||||
|
|
|
@ -6,9 +6,6 @@ module Fog
|
|||
class Storage
|
||||
|
||||
class Directory < Fog::Model
|
||||
extend Fog::Deprecation
|
||||
deprecate(:name, :key)
|
||||
deprecate(:name=, :key=)
|
||||
|
||||
identity :key
|
||||
|
||||
|
|
|
@ -6,9 +6,6 @@ module Fog
|
|||
class Storage
|
||||
|
||||
class Directory < Fog::Model
|
||||
extend Fog::Deprecation
|
||||
deprecate(:name, :key)
|
||||
deprecate(:name=, :key=)
|
||||
|
||||
identity :key, :aliases => 'name'
|
||||
|
||||
|
|
|
@ -1,19 +1,3 @@
|
|||
module Fog
|
||||
module Rackspace
|
||||
class Files
|
||||
|
||||
def self.new(attributes = {})
|
||||
location = caller.first
|
||||
warning = "[yellow][WARN] Fog::Rackspace::Files#new is deprecated, use Fog::Rackspace::Storage#new instead[/]"
|
||||
warning << " [light_black](" << location << ")[/] "
|
||||
Formatador.display_line(warning)
|
||||
Fog::Rackspace::Storage.new(attributes)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
module Fog
|
||||
module Rackspace
|
||||
class Storage < Fog::Service
|
||||
|
|
Loading…
Reference in a new issue