Sha256: ce160c3e4143aecb44f270d666f40347d99473a7bdcdbb4ef821067c70803553

Contents?: true

Size: 717 Bytes

Versions: 23

Compression:

Stored size: 717 Bytes

Contents

module Shipit
  class Rollback < Deploy
    belongs_to :deploy, foreign_key: :parent_id

    def rollback?
      true
    end

    def rollbackable?
      false
    end

    def supports_rollback?
      false
    end

    def commits
      return Commit.none unless stack

      @commits ||= stack.commits.reachable.newer_than(until_commit_id).until(since_commit_id).order(id: :asc)
    end

    def commit_range
      [until_commit, since_commit]
    end

    def to_partial_path
      'deploys/deploy'
    end

    private

    def create_commit_deployments
      # Rollback events are confusing in GitHub
    end

    def update_commit_deployments
      # Rollback events are confusing in GitHub
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
shipit-engine-0.19.0 app/models/shipit/rollback.rb
shipit-engine-0.18.1 app/models/shipit/rollback.rb
shipit-engine-0.18.0 app/models/shipit/rollback.rb
shipit-engine-0.17.0 app/models/shipit/rollback.rb
shipit-engine-0.16.0 app/models/shipit/rollback.rb
shipit-engine-0.15.0 app/models/shipit/rollback.rb
shipit-engine-0.14.0 app/models/shipit/rollback.rb
shipit-engine-0.13.0 app/models/shipit/rollback.rb
shipit-engine-0.12.1 app/models/shipit/rollback.rb
shipit-engine-0.12.0 app/models/shipit/rollback.rb
shipit-engine-0.11.0 app/models/shipit/rollback.rb
shipit-engine-0.10.0 app/models/shipit/rollback.rb
shipit-engine-0.9.0 app/models/shipit/rollback.rb
shipit-engine-0.8.9 app/models/shipit/rollback.rb
shipit-engine-0.8.8 app/models/shipit/rollback.rb
shipit-engine-0.8.7 app/models/shipit/rollback.rb
shipit-engine-0.8.6 app/models/shipit/rollback.rb
shipit-engine-0.8.5 app/models/shipit/rollback.rb
shipit-engine-0.8.4 app/models/shipit/rollback.rb
shipit-engine-0.8.3 app/models/shipit/rollback.rb