mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
move errors to its own file
This commit is contained in:
parent
afd711cb08
commit
5ed729246a
2 changed files with 14 additions and 14 deletions
15
lib/fog.rb
15
lib/fog.rb
|
@ -22,24 +22,11 @@ require 'fog/attributes'
|
|||
require 'fog/collection'
|
||||
require 'fog/connection'
|
||||
require 'fog/deprecation'
|
||||
require 'fog/errors'
|
||||
require 'fog/model'
|
||||
require 'fog/parser'
|
||||
require 'fog/ssh'
|
||||
|
||||
module Fog
|
||||
module Errors
|
||||
|
||||
class Error < StandardError
|
||||
attr_accessor :verbose
|
||||
end
|
||||
|
||||
class MockNotImplemented < Fog::Errors::Error; end
|
||||
|
||||
class NotFound < Fog::Errors::Error; end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
require 'fog/aws'
|
||||
require 'fog/bluebox'
|
||||
require 'fog/local'
|
||||
|
|
13
lib/fog/errors.rb
Normal file
13
lib/fog/errors.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
module Fog
|
||||
module Errors
|
||||
|
||||
class Error < StandardError
|
||||
attr_accessor :verbose
|
||||
end
|
||||
|
||||
class MockNotImplemented < Fog::Errors::Error; end
|
||||
|
||||
class NotFound < Fog::Errors::Error; end
|
||||
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue