Sha256: cffde43365673a59a75d4fc2ce4c654f51aabd004f65087a374d8a8f308420fd

Contents?: true

Size: 431 Bytes

Versions: 12

Compression:

Stored size: 431 Bytes

Contents

module Locomotive::Wagon

  class PushSectionsCommand < PushBaseCommand

    def entities
      repositories.section.all
    end

    def decorate(entity)
      SectionDecorator.new(entity, content_assets_pusher)
    end

    def persist(decorated_entity)
      api_client.sections.update(decorated_entity.slug, decorated_entity.to_hash)
    end

    def label_for(decorated_entity)
      decorated_entity.name
    end

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
locomotivecms_wagon-3.2.0.alpha2 lib/locomotive/wagon/commands/push_sub_commands/push_sections_command.rb
locomotivecms_wagon-3.2.0.alpha1 lib/locomotive/wagon/commands/push_sub_commands/push_sections_command.rb
locomotivecms_wagon-3.1.1 lib/locomotive/wagon/commands/push_sub_commands/push_sections_command.rb
locomotivecms_wagon-3.1.0 lib/locomotive/wagon/commands/push_sub_commands/push_sections_command.rb
locomotivecms_wagon-3.1.0.beta1 lib/locomotive/wagon/commands/push_sub_commands/push_sections_command.rb
locomotivecms_wagon-3.0.5 lib/locomotive/wagon/commands/push_sub_commands/push_sections_command.rb
locomotivecms_wagon-3.0.4 lib/locomotive/wagon/commands/push_sub_commands/push_sections_command.rb
locomotivecms_wagon-3.0.3 lib/locomotive/wagon/commands/push_sub_commands/push_sections_command.rb
locomotivecms_wagon-3.0.2 lib/locomotive/wagon/commands/push_sub_commands/push_sections_command.rb
locomotivecms_wagon-3.0.0 lib/locomotive/wagon/commands/push_sub_commands/push_sections_command.rb
locomotivecms_wagon-3.0.0.rc0 lib/locomotive/wagon/commands/push_sub_commands/push_sections_command.rb
locomotivecms_wagon-3.0.0.beta2 lib/locomotive/wagon/commands/push_sub_commands/push_sections_command.rb