Sha256: 4c1fbab50aaf982e8edcafe545176f5a579f075a1351b9e0bcfee86d8349e065

Contents?: true

Size: 815 Bytes

Versions: 118

Compression:

Stored size: 815 Bytes

Contents

puts __FILE__ if defined?(DEBUG)

require 'rake'

class Tasks
	@@quiet=false

    def self.quiet
    	@@quiet
    end

    def self.execute value
	  if(value.respond_to?(:execute))
	    value.update if value.respond_to?(:update)
	    value.execute
	  else
	    if(value.is_a?(String))
	      puts `#{value}`
	    else
	      if(value.is_a?(Array))
	        value.each{|e| execute(e)}
	      end
	    end
	    end
	end

	def self.execute_task task
		if(defined?(COMMANDS))
			if(COMMANDS.has_key?(task))
				puts "[:#{task}]" if(!Tasks.quiet)
		  		Tasks.execute(COMMANDS[task])
		    end
		end
	end
end

['add','analyze','build','clobber','commit',
 'doc','info','publish','pull','push','setup','test',
 'update','default'].each{|name| require_relative("tasks/#{name}.rb")}

Version data entries

118 entries across 118 versions & 1 rubygems

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