-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from codio/gitflow
gitflow was added
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module Autoparts | ||
module Packages | ||
class Gitflow < Package | ||
name 'gitflow' | ||
version '0.4.1' | ||
description 'Gitflow: a collection of Git extensions to provide high-level repository operations for Vincent Driessen\'s branching model.' | ||
source_url 'https://raw.github.com/nvie/gitflow/master/contrib/gitflow-installer.sh' | ||
source_sha1 '068fbfd1c33c401b303bfa2bd03678fab1c8f74b' | ||
source_filetype 'sh' | ||
|
||
category Category::DEVELOPMENT_TOOLS | ||
|
||
def install | ||
bin_path.mkpath | ||
ENV['INSTALL_PREFIX'] = bin_path.to_s | ||
execute 'sh', archive_filename | ||
execute 'sed', '-i', "s|export GITFLOW_DIR.\\+)|export GITFLOW_DIR=\"#{bin_path}\"|g", bin_path + 'git-flow' | ||
end | ||
|
||
end | ||
end | ||
end |