Sha256: c1376ffbca295cc56dfd6b50d4cf7e335da09102f89000c066548b72e40fcc2f
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 KB
Contents
require 'dev_environment' require 'dev_commands' require 'dev_git' require 'dev_svn' require 'dev_tasks' require 'dev_projects' require 'rake/clean' 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dev-2.0.41 | lib/dev.rb |
dev-2.0.40 | lib/dev.rb |
dev-2.0.39 | lib/dev.rb |
dev-2.0.38 | lib/dev.rb |