Sha256: ed12cde114da56db7dc9db633377f98974dd8c9e391faca085b2e47b30cc14b8

Contents?: true

Size: 959 Bytes

Versions: 1

Compression:

Stored size: 959 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
    puts "[:default] completed in #{TIMER.elapsed_str}"
  end # :default
end

class Dev
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dev-2.0.53 lib/dev.rb