Sha256: e5b7e2b00dc91dbb7e49600486fbe51665e1f2e9e9df48d15745089ea44a49e0

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

namespace :git do
  desc "Clones the Git repository to the release path."
  task :clone do
    settings.revision ||= `git rev-parse HEAD`.strip

    queue %{
      echo "-----> Cloning the Git repository"
      #{echo_cmd %[git clone "#{repository!}" . -n --recursive]} &&
      echo "-----> Using revision #{revision}" &&
      #{echo_cmd %[git checkout "#{revision}" -b current_release 1>/dev/null]} &&
      #{echo_cmd %[rm -rf .git]}
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mina-0.1.0 lib/mina/git.rb