Sha256: ea78c2e846e113f8294375280ed330519783a928c7504a121fd8b1af38979ab8
Contents?: true
Size: 591 Bytes
Versions: 28
Compression:
Stored size: 591 Bytes
Contents
require 'active_support/concern' module Locomotive::Wagon module BaseConcern extend ActiveSupport::Concern included do alias :_sync :_pull end module ClassMethods def sync(api_client, current_site, path) new(api_client, current_site, path).sync end end def sync instrument do instrument :start self._sync instrument :done end end def instrument_base_name 'wagon.sync' end def resource_name self.class.name[/::Sync(\w+)Command$/, 1].underscore end end end
Version data entries
28 entries across 28 versions & 1 rubygems