Sha256: 53a76f7a05bdd460180da85c3001f04da69cfb17f913c3f547d5f55e077de4b0

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

#require 'dev_environment'
#require 'dev_commands'
#require 'dev_git'
#require 'dev_svn'
#require 'dev_tasks'
#require 'dev_projects'
require 'rake/clean'

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

CLOBBER.include('*.gem')


#Tasks.initialize(COMMANDS)
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,:analyze,:publish,:add,:commit,:push,:info].each{|task| Rake::Task[task].invoke}
    	else
  	  	if(File.exists?('.svn'))
  	  		[:update,:setup,:build,:test,:analyze,:publish,:add,:commit,:info].each{|task| Rake::Task[task].invoke}
  	  	else
          [:setup,:build,:test,:analyze,:publish,:info].each{|task| Rake::Task[task].invoke}
  	  		#puts "TODO: define DEFAULT_TASKS array"
          #puts "for example:"
          #puts "DEFAULT_TASKS=[:setup,:build,:test]"
  	  	end
  	 end
    end
  end
end

class Dev
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dev-2.0.42 lib/dev.rb