Sha256: d73489c354fcb5d604867da722235de42c611cd3bd3ea4c2fb161b1353e31a1b
Contents?: true
Size: 1.5 KB
Versions: 7
Compression:
Stored size: 1.5 KB
Contents
require 'rake/clean' Dir.glob("#{File.dirname(__FILE__)}/*.rb").each{|rb| require_relative(rb) } CLOBBER.include('*.gem','bin') CLEAN.include('rake.default','obj') 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')) puts `git add -A` if(File.exists?('gitignore')) if(Git.has_changes? || !File.exists?('rake.default')) [:pull,:setup,:build,:test,:publish,:add,:commit,:push,:info].each{|task| Rake::Task[task].invoke} else puts 'no changes detected.' #[:pull].each{|task| Rake::Task[task].invoke} end else if(File.exists?('.svn')) if(Svn.has_changes? || !File.exists?('rake.default')) [:update,:setup,:build,:test,:publish,:add,:commit,:info].each{|task| Rake::Task[task].invoke} else puts 'no changes detected.' #[:update].each{|task| Rake::Task[task].invoke} end else [:setup,:build,:test,:publish,:info].each{|task| Rake::Task[task].invoke} end end end puts "[:default] completed in #{TIMER.elapsed_str}" File.open('rake.default','w'){|f|f.puts "[:default] completed in #{TIMER.elapsed_str}"} end # :default end class Dev end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
dev-2.0.68 | lib/dev.rb |
dev-2.0.67 | lib/dev.rb |
dev-2.0.66 | lib/dev.rb |
dev-2.0.64 | lib/dev.rb |
dev-2.0.63 | lib/dev.rb |
dev-2.0.62 | lib/dev.rb |
dev-2.0.61 | lib/dev.rb |