Class: Dabcup::Storage::Driver::Base
- Inherits:
-
Object
- Object
- Dabcup::Storage::Driver::Base
- Extended by:
- Forwardable
- Defined in:
- lib/dabcup/storage/driver/base.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #delete(dump_name) ⇒ Object
-
#disconnect ⇒ Object
Methods to implement #####.
- #get(remote_name, local_path) ⇒ Object
-
#initialize(uri) ⇒ Base
constructor
A new instance of Base.
- #list ⇒ Object
- #local? ⇒ Boolean
- #protocol ⇒ Object
- #put(local_path, remote_name) ⇒ Object
Constructor Details
#initialize(uri) ⇒ Base
Returns a new instance of Base.
28 29 30 |
# File 'lib/dabcup/storage/driver/base.rb', line 28 def initialize(uri) @uri = Addressable::URI.parse(uri) end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
24 25 26 |
# File 'lib/dabcup/storage/driver/base.rb', line 24 def uri @uri end |
Instance Method Details
#delete(dump_name) ⇒ Object
52 53 54 |
# File 'lib/dabcup/storage/driver/base.rb', line 52 def delete(dump_name) raise NotImplementedError end |
#disconnect ⇒ Object
Methods to implement #####
36 37 38 |
# File 'lib/dabcup/storage/driver/base.rb', line 36 def disconnect raise NotImplementedError end |
#get(remote_name, local_path) ⇒ Object
44 45 46 |
# File 'lib/dabcup/storage/driver/base.rb', line 44 def get(remote_name, local_path) raise NotImplementedError end |
#list ⇒ Object
48 49 50 |
# File 'lib/dabcup/storage/driver/base.rb', line 48 def list raise NotImplementedError end |
#local? ⇒ Boolean
60 61 62 |
# File 'lib/dabcup/storage/driver/base.rb', line 60 def local? raise NotImplementedError end |
#protocol ⇒ Object
56 57 58 |
# File 'lib/dabcup/storage/driver/base.rb', line 56 def protocol raise NotImplementedError end |
#put(local_path, remote_name) ⇒ Object
40 41 42 |
# File 'lib/dabcup/storage/driver/base.rb', line 40 def put(local_path, remote_name) raise NotImplementedError end |