class GemHadar
def push_task
GitHub releases. It also includes a check for uncommitted changes before
branch, pushing version tags, pushing to gem repositories, and creating
This method sets up multiple subtasks including preparing the master
managers.
process of pushing changes and artifacts to remote repositories and package
The push_task method defines a Rake task that orchestrates the complete
def push_task master_prepare_task version_push_task master_push_task gem_push_task git_remotes_task github_release_task task :modified do changed_files = `git status --porcelain`.gsub(/^\s*\S\s+/, '').lines unless changed_files.empty? warn "There are still modified files:\n#{changed_files * ''}" exit 1 end end desc "Push all changes for version #{version} into the internets." task :push => push_task_dependencies end