Sha256: 19c02f966ec52274719141bfc5eb5cc919d04b56a96a7e0d10e8bc5a13f7983a

Contents?: true

Size: 448 Bytes

Versions: 10

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true
module Shipit
  class DeployCommands < TaskCommands
    def steps
      deploy_spec.deploy_steps!
    end

    def env
      commit = @task.until_commit
      super.merge(
        'SHA' => commit.sha,
        'REVISION' => commit.sha,
        'DIFF_LINK' => diff_url,
      )
    end

    protected

    def diff_url
      Shipit::GithubUrlHelper.github_commit_range_url(@stack, *@task.commit_range)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 lib/shipit/deploy_commands.rb
shipit-engine-0.38.0 lib/shipit/deploy_commands.rb
shipit-engine-0.37.0 lib/shipit/deploy_commands.rb
shipit-engine-0.36.1 lib/shipit/deploy_commands.rb
shipit-engine-0.36.0 lib/shipit/deploy_commands.rb
shipit-engine-0.35.1 lib/shipit/deploy_commands.rb
shipit-engine-0.35.0 lib/shipit/deploy_commands.rb
shipit-engine-0.34.0 lib/shipit/deploy_commands.rb
shipit-engine-0.33.0 lib/shipit/deploy_commands.rb
shipit-engine-0.32.0 lib/shipit/deploy_commands.rb