Sha256: fa02f03148c434ef5c64a9c00877161661d39c38c6d65fe4b9a8023383b348fe

Contents?: true

Size: 421 Bytes

Versions: 44

Compression:

Stored size: 421 Bytes

Contents

module Locomotive::Wagon

  class PushTranslationsCommand < PushBaseCommand

    def entities
      repositories.translation.all
    end

    def decorate(entity)
      TranslationDecorator.new(entity)
    end

    def persist(decorated_entity)
      api_client.translations.update(decorated_entity.id, decorated_entity.to_hash)
    end

    def label_for(decorated_entity)
      decorated_entity.key
    end

  end

end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
locomotivecms_wagon-3.2.0.alpha2 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-3.2.0.alpha1 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-3.1.1 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-3.1.0 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-3.1.0.beta1 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-3.0.5 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-3.0.4 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-3.0.3 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-3.0.2 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-3.0.0 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-3.0.0.rc0 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-3.0.0.beta2 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-2.4.1 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-2.4.0 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-2.4.0.rc2 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-2.4.0.rc1 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-2.3.0 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-2.3.0.rc1 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-2.2.0 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb
locomotivecms_wagon-2.2.0.rc3 lib/locomotive/wagon/commands/push_sub_commands/push_translations_command.rb