Sha256: e68282967f95938a7216c5e64bd9bed773543340776f3885ec905a0bbd0adec5

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

desc "performs a git push"
task :push do Tasks.execute_task :push; end

class Push < Array
  def update
    if !defined?(NO_PUSH) && (File.exist?(".git") && `git config --list`.include?("user.name=")) && (`git branch`.include?("* master") || `git branch`.include?("* develop"))
      add_passive "git push"
      add_passive "git push --tags"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dev-2.1.154 lib/tasks/push.rb