Sha256: 577f0d534d746e70edab100018a16aad0513b7cfbf0f9b84953f0d6f220b71a1

Contents?: true

Size: 988 Bytes

Versions: 9

Compression:

Stored size: 988 Bytes

Contents

#!/usr/bin/env rake1.9
# encoding: utf-8

# http://support.runcoderun.com/faqs/builds/how-do-i-run-rake-with-trace-enabled
Rake.application.options.trace = true

task :setup => ["submodules:init"]

namespace :submodules do
  desc "Init submodules"
  task :init do
    sh "git submodule init"
  end

  desc "Update submodules"
  task :update do
    Dir["vendor/*"].each do |path|
      if File.directory?(path) && File.directory?(File.join(path, ".git"))
        Dir.chdir(path) do
          puts "=> #{path}"
          puts %x[git clean -fd]
          puts %x[git reset --hard]
          puts %x[git checkout master]
          puts %x[git fetch]
          puts %x[git reset origin/master --hard]
          puts
        end
      end
    end
  end
end

desc "Run specs"
task :default => :setup do
  rubylib = (ENV["RUBYLIB"] || String.new).split(":")
  libdirs = Dir["vendor/*/lib"]
  ENV["RUBYLIB"] = (libdirs + rubylib).join(":")
  exec "./script/spec --options spec/spec.opts spec"
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
simple-templater-0.0.1.4 stubs/project/content/Rakefile
simple-templater-0.0.1.3 stubs/project/content/Rakefile
simple-templater-0.2.pre stubs/project/content/Rakefile
simple-templater-0.0.1.2 stubs/project/content/Rakefile
simple-templater-0.0.1.1 stubs/project/content/Rakefile
rango-0.0.6 vendor/simple-templater/stubs/project/content/Rakefile
rango-0.1.pre vendor/simple-templater/stubs/project/content/Rakefile
simple-templater-0.1.pre stubs/project/content/Rakefile
simple-templater-0.0.1 stubs/project/content/Rakefile