Sha256: d1060be7a1ca2f6df3dbb6bb25dde4d12293de83c020203e7cddbf49b40c9d36

Contents?: true

Size: 886 Bytes

Versions: 15

Compression:

Stored size: 886 Bytes

Contents

puts __FILE__ if defined?(DEBUG)

require_relative('info.rb')
require_relative('../base/array.rb')
require_relative('../base/projects.rb')
require_relative('../base/timer.rb')

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'))
    		[:setup,:build,:test,:add,:commit,:publish,:clean,:push,:pull].each{|task| Rake::Task[task].invoke}
    	else
  	  	if(File.exists?('.svn'))
  	  		[:setup,:build,:test,:add,:commit,:publish,:clean,:update].each{|task| Rake::Task[task].invoke}
  	  	else
          [:setup,:build,:test,:publish].each{|task| Rake::Task[task].invoke}
  	  	end
  	 end
    end
    
    puts "[:default] completed in #{TIMER.elapsed_str}"
  end # :default
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dev-2.0.268 lib/tasks/default.rb
dev-2.0.267 lib/tasks/default.rb
dev-2.0.266 lib/tasks/default.rb
dev-2.0.265 lib/tasks/default.rb
dev-2.0.264 lib/tasks/default.rb
dev-2.0.263 lib/tasks/default.rb
dev-2.0.262 lib/tasks/default.rb
dev-2.0.261 lib/tasks/default.rb
dev-2.0.260 lib/tasks/default.rb
dev-2.0.259 lib/tasks/default.rb
dev-2.0.258 lib/tasks/default.rb
dev-2.0.257 lib/tasks/default.rb
dev-2.0.256 lib/tasks/default.rb
dev-2.0.255 lib/tasks/default.rb
dev-2.0.254 lib/tasks/default.rb