class Mhc::Sync::Strategy::Factory
Public Class Methods
create(strategy)
click to toggle source
# File lib/mhc/sync/strategy.rb, line 6 def self.create(strategy) case strategy.to_sym when :mirror return Mirror.new when :sync return Sync.new when :import return Import.new else raise NotImplementedError, "#{strategy} #{strategy.class}" end end