Sha256: e88c56d4eaa82c42967be507d61cc0984709f56449b667febdfc87613b272be0

Contents?: true

Size: 1.2 KB

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
dev-2.0.44 lib/dev.rb
dev-2.0.43 lib/dev.rb