Sha256: d0fe207a63d797072bf83e740e50dc52c116186023dcb91a408d1d28d80d4bf2

Contents?: true

Size: 906 Bytes

Versions: 4

Compression:

Stored size: 906 Bytes

Contents

require 'rake/clean'

Dir.glob("#{File.dirname(__FILE__)}/*.rb").each{|rb| 
  require_relative(rb)
}

CLOBBER.include('*.gem')

current=Projects.current
if(!current.nil?)
  INFO.add "#{current[:name]} #{current[:url]}"
end

if(!defined?(NO_DEFAULT_TASK)) 
  desc 'perform project commands to push gem development'
  task :default do
    if(defined?(DEFAULT_TASKS))
      DEFAULT_TASKS.each{|task| Rake::Task[task].invoke}
    else
    	if(File.exists?('.git'))
    		[:pull,:setup,:build,:test,:publish,:add,:commit,:push,:info].each{|task| Rake::Task[task].invoke}
    	else
  	  	if(File.exists?('.svn'))
  	  		[:update,:setup,:build,:test,:publish,:add,:commit,:info].each{|task| Rake::Task[task].invoke}
  	  	else
          [:setup,:build,:test,:publish,:info].each{|task| Rake::Task[task].invoke}
  	  	end
  	 end
    end
  end
end

class Dev
end

TIMER=Timer.new

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dev-2.0.51 lib/dev.rb
dev-2.0.50 lib/dev.rb
dev-2.0.49 lib/dev.rb
dev-2.0.48 lib/dev.rb