Sha256: 018731957e9cd38faa30a5b8e452d2d8e121485a49453b26865e2ad486a48fb7

Contents?: true

Size: 418 Bytes

Versions: 10

Compression:

Stored size: 418 Bytes

Contents

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.31.0 lib/shipit/deploy_commands.rb
shipit-engine-0.30.0 lib/shipit/deploy_commands.rb
shipit-engine-0.29.0 lib/shipit/deploy_commands.rb
shipit-engine-0.28.1 lib/shipit/deploy_commands.rb
shipit-engine-0.28.0 lib/shipit/deploy_commands.rb
shipit-engine-0.27.1 lib/shipit/deploy_commands.rb
shipit-engine-0.27.0 lib/shipit/deploy_commands.rb
shipit-engine-0.26.0 lib/shipit/deploy_commands.rb
shipit-engine-0.25.1 lib/shipit/deploy_commands.rb
shipit-engine-0.25.0 lib/shipit/deploy_commands.rb