Sha256: cf237a6c40f1e5cb1b2de196ba03f0429932f55b638594fd5ff4d80968cb4b08

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 Bytes

Contents

module YSI
  class PushedCode < Assertion
    needs "release_branch"

    def display_name
      "pushed code"
    end

    def check
      if Git.new.needs_push?
        return nil
      else
        return "up-to-date"
      end
    end

    def assert(dry_run: false)
      if !dry_run
        Git.new.push
      end
      return "pushed"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yes_ship_it-0.0.5 assertions/pushed_code.rb