Class: Dabcup::Storage::Driver::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/dabcup/storage/driver/base.rb

Direct Known Subclasses

FTP, Local, S3, SFTP

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#uriObject (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

Raises:

  • (NotImplementedError)


52
53
54
# File 'lib/dabcup/storage/driver/base.rb', line 52

def delete(dump_name)
  raise NotImplementedError
end

#disconnectObject

Methods to implement #####

Raises:

  • (NotImplementedError)


36
37
38
# File 'lib/dabcup/storage/driver/base.rb', line 36

def disconnect
  raise NotImplementedError
end

#get(remote_name, local_path) ⇒ Object

Raises:

  • (NotImplementedError)


44
45
46
# File 'lib/dabcup/storage/driver/base.rb', line 44

def get(remote_name, local_path)
  raise NotImplementedError
end

#listObject

Raises:

  • (NotImplementedError)


48
49
50
# File 'lib/dabcup/storage/driver/base.rb', line 48

def list
  raise NotImplementedError
end

#local?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


60
61
62
# File 'lib/dabcup/storage/driver/base.rb', line 60

def local?
  raise NotImplementedError
end

#protocolObject

Raises:

  • (NotImplementedError)


56
57
58
# File 'lib/dabcup/storage/driver/base.rb', line 56

def protocol
  raise NotImplementedError
end

#put(local_path, remote_name) ⇒ Object

Raises:

  • (NotImplementedError)


40
41
42
# File 'lib/dabcup/storage/driver/base.rb', line 40

def put(local_path, remote_name)
  raise NotImplementedError
end