Sha256: d2e3c0a73002bab3e4bda5928c6a1e254939f2116bf37d803c5c2a6a610ea3cd
Contents?: true
Size: 1.5 KB
Versions: 4
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','obj') CLEAN.include('rake.default') 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dev-2.0.60 | lib/dev.rb |
dev-2.0.59 | lib/dev.rb |
dev-2.0.58 | lib/dev.rb |
dev-2.0.57 | lib/dev.rb |