Sha256: f4d0875873cd095c76c119e7a0e28432c65c1b97c76d32539e28348c3c83646c

Contents?: true

Size: 413 Bytes

Versions: 4

Compression:

Stored size: 413 Bytes

Contents

module YSI
  class PushedTag < Assertion
    needs "tag"

    def display_name
      "pushed tag"
    end

    def tag
      @engine.tag
    end

    def check
      response = `git ls-remote --tags origin #{tag}`
      if response.include?(tag)
        return response
      end

      nil
    end

    def assert(dry_run: false)
      if !dry_run
        `git push --tags`
      end
      tag
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yes_ship_it-0.0.5 assertions/pushed_tag.rb
yes_ship_it-0.0.4 assertions/pushed_tag.rb
yes_ship_it-0.0.3 assertions/pushed_tag.rb
yes_ship_it-0.0.2 assertions/pushed_tag.rb