Sha256: 8523dcf04b9acdd889e203c5fb01f3369cc6f60e6f7ae832ce91819d7b087cd7

Contents?: true

Size: 489 Bytes

Versions: 25

Compression:

Stored size: 489 Bytes

Contents

module Shipit
  class DeploySerializer < TaskSerializer
    include GithubUrlHelper

    has_many :commits

    attributes :compare_url, :rollback_url, :additions, :deletions

    def html_url
      stack_deploy_url(object.stack, object)
    end

    def compare_url
      github_commit_range_url(object.stack, object.since_commit, object.until_commit)
    end

    def rollback_url
      revert_stack_deploy_url(object.stack, object)
    end

    def type
      :deploy
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.30.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.29.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.28.1 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.28.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.27.1 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.27.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.26.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.25.1 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.25.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.24.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.23.1 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.23.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.22.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.21.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.20.1 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.20.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.19.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.18.1 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.18.0 app/serializers/shipit/deploy_serializer.rb