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.228 lib/tasks.rb
dev-2.0.227 lib/tasks.rb
dev-2.0.226 lib/tasks.rb
dev-2.0.225 lib/tasks.rb
dev-2.0.224 lib/tasks.rb
dev-2.0.223 lib/tasks.rb
dev-2.0.222 lib/tasks.rb
dev-2.0.221 lib/tasks.rb
dev-2.0.220 lib/tasks.rb
dev-2.0.219 lib/tasks.rb
dev-2.0.217 lib/tasks.rb
dev-2.0.216 lib/tasks.rb
dev-2.0.215 lib/tasks.rb
dev-2.0.214 lib/tasks.rb
dev-2.0.213 lib/tasks.rb
dev-2.0.212 lib/tasks.rb
dev-2.0.211 lib/tasks.rb
dev-2.0.210 lib/tasks.rb
dev-2.0.209 lib/tasks.rb
dev-2.0.208 lib/tasks.rb