module Locomotive::Wagon::BaseConcern
Public Instance Methods
instrument_base_name()
click to toggle source
# File lib/locomotive/wagon/commands/sync_sub_commands/concerns/base_concern.rb, line 31 def instrument_base_name 'wagon.sync' end
resource_name()
click to toggle source
# File lib/locomotive/wagon/commands/sync_sub_commands/concerns/base_concern.rb, line 35 def resource_name self.class.name[/::Sync(\w+)Command$/, 1].underscore end
sync()
click to toggle source
# File lib/locomotive/wagon/commands/sync_sub_commands/concerns/base_concern.rb, line 23 def sync instrument do instrument :start self._sync instrument :done end end