-
-
Save bitsapien/bcf1f23191a5104f59a7bbd972015db7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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