Skip to content

Commit

Permalink
Merge pull request #70 from codio/gitflow
Browse files Browse the repository at this point in the history
gitflow was added
  • Loading branch information
ksimuk committed Mar 21, 2014
2 parents fe9676c + ae4423f commit 2416694
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lib/autoparts/packages/gitflow.rb
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

0 comments on commit 2416694

Please sign in to comment.