Module: Match::Storage
- Defined in:
- match/lib/match/storage.rb,
match/lib/match/storage/interface.rb,
match/lib/match/storage/git_storage.rb
Defined Under Namespace
Classes: GitStorage, Interface
Class Method Summary collapse
Class Method Details
.for_mode(storage_mode, params) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'match/lib/match/storage.rb', line 6 def self.for_mode(storage_mode, params) if storage_mode == "git" return Storage::GitStorage.configure(params) elsif storage_mode == "google_cloud" # return Storage::GoogleCloudStorage else UI.user_error!("Invalid storage mode '#{storage_mode}'") end end |