Sha256: 0ab1e271561312a813daa2c29270b2759e54f89fa051ab46012c600e1e28f1cd

Contents?: true

Size: 392 Bytes

Versions: 15

Compression:

Stored size: 392 Bytes

Contents

module Shipit
  class DeploySerializer < TaskSerializer
    include GithubUrlHelper

    has_many :commits

    attributes :compare_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 type
      :deploy
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
shipit-engine-0.12.1 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.12.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.11.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.10.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.9.0 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.8.9 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.8.8 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.8.7 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.8.6 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.8.5 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.8.4 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.8.3 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.8.2 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.8.1 app/serializers/shipit/deploy_serializer.rb
shipit-engine-0.8.0 app/serializers/shipit/deploy_serializer.rb