Sha256: 0518f7ce253510d85650c8300fa7896d2ae10d9bf7fe30a9a2fe04688292c266

Contents?: true

Size: 517 Bytes

Versions: 3

Compression:

Stored size: 517 Bytes

Contents

#!/usr/bin/env rake
require 'bundler/gem_tasks'
require 'git'

namespace 'develop' do

  test_kit = File.expand_path '../test_kit', __FILE__

  task :prepare do |t|
    puts 'Test kit exists, no need to clone it.' if File.exists? test_kit
    Git.clone 'git://github.com/razor-x/kits_skeleton.git', test_kit unless File.exists? test_kit
  end

  task :update  => [ :prepare ] do |t|
    Git.open(test_kit).pull
  end

  task :reset => [ :prepare, :update ] do |t|
    Git.open(test_kit).reset_hard('master')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kit-1.1.0 Rakefile
kit-1.0.1 Rakefile
kit-1.0.0 Rakefile