Skip to content

Instantly share code, notes, and snippets.

@bitsapien
Created April 26, 2016 05:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitsapien/bcf1f23191a5104f59a7bbd972015db7 to your computer and use it in GitHub Desktop.
Save bitsapien/bcf1f23191a5104f59a7bbd972015db7 to your computer and use it in GitHub Desktop.
module StorageDriver
class Base
def initialize
@storage = ConfigurationHelper::DEFAULT_STORAGE
end
def mv src, dest, options={}
raise not_implemented_error_message
end
private
def self.not_implemented_error_message
"This method is required to be implemented!"
end
end
class Local < Base
def self.mv src, dest, options={}
puts "Local Move"
end
end
class S3 < Base
def self.mv src, dest, options={}
puts "s3 Move"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment