Module: Brief::RemoteSyncing

Extended by:
ActiveSupport::Concern
Defined in:
lib/brief/remote_syncing.rb

Instance Method Summary collapse

Instance Method Details

#publish_serviceObject



4
5
6
7
8
9
# File 'lib/brief/remote_syncing.rb', line 4

def publish_service
  case
  when briefcase && briefcase.uses_app?
    [briefcase.app, self.class.name.to_s.split('::').last, 'publisher'].join("_").camelize.constantize
  end
end

#sync_serviceObject



11
12
13
14
15
16
# File 'lib/brief/remote_syncing.rb', line 11

def sync_service
  case
  when briefcase && briefcase.uses_app?
    [briefcase.app, self.class.name.to_s.split('::').last, 'publisher'].join("_").camelize.constantize
  end
end