1
0
Fork 0
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:
geemus 2011-02-16 16:41:39 -08:00
parent b6af64d76a
commit 70af200dda
16 changed files with 1 additions and 74 deletions

View file

@ -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

View file

@ -5,8 +5,6 @@ module Fog
class Compute
class KeyPair < Fog::Model
extend Fog::Deprecation
deprecate(:material, :private_key)
identity :name, :aliases => 'keyName'

View file

@ -5,8 +5,6 @@ module Fog
class Compute
class Snapshot < Fog::Model
extend Fog::Deprecation
deprecate(:status, :state)
identity :id, :aliases => 'snapshotId'

View file

@ -5,8 +5,6 @@ module Fog
class Compute
class Volume < Fog::Model
extend Fog::Deprecation
deprecate(:status, :state)
identity :id, :aliases => 'volumeId'

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -206,8 +206,6 @@ module Fog
class Real
include Utils
extend Fog::Deprecation
deprecate(:reset, :reload)
# Initialize connection to S3
#

View file

@ -167,8 +167,6 @@ module Fog
class Real
include Utils
extend Fog::Deprecation
deprecate(:reset, :reload)
# Initialize connection to Google Storage
#

View file

@ -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']

View file

@ -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'

View file

@ -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']

View file

@ -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'

View file

@ -6,9 +6,6 @@ module Fog
class Storage
class Directory < Fog::Model
extend Fog::Deprecation
deprecate(:name, :key)
deprecate(:name=, :key=)
identity :key

View file

@ -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'

View file

@ -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