Sha256: f3a4ef785d6a6930352f698922d8a9b66b872598c30c561d130e4eb8ce417bbd
Contents?: true
Size: 952 Bytes
Versions: 1
Compression:
Stored size: 952 Bytes
Contents
# Main hook for loading various Rake tasks require 'rake' require_relative 'release_helpers' require_relative 'xcode_helpers' require_relative 'release_repo' require_relative 'release_github' task :git_clean_tree do unless system("git diff-files --quiet --ignore-submodules --") fail "Error: There are unstaged changes in the working tree. You are trying to run a task that requires a clean git working tree" end unless system("git diff-index --cached --quiet HEAD --ignore-submodules --") fail "Error: Uncommitted changes in the index. You are trying to run a task that requires a clean git working tree" end end task :git_version_tag => :git_clean_tree do unless `git describe --exact-match --tags HEAD`.chomp.include?(agvtool_version) fail "Error: The current git HEAD does not have a tag that matches \"#{agvtool_version}\". You are trying to run a task that requires a matching tag on the current git ref." end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radius-toolbelt-0.0.1 | lib/radius/toolbelt/tasks.rb |