Sha256: 64814d9789735db4924b4325b9471d7d8010376f2057c76d02e9edbd5bf2400b

Contents?: true

Size: 827 Bytes

Versions: 106

Compression:

Stored size: 827 Bytes

Contents

puts __FILE__ if defined?(DEBUG)

require 'json'
require 'rake/clean'

Dir.glob("#{File.dirname(__FILE__)}/tasks/*.rb").each{|rb| 
  require(rb)
}
class Commands < Hash

	def initialize directory=Dir.pwd
		Dir.chdir(directory) do
		  self[:pull]=Pull.new
		  self[:update]=Update.new
		  self[:setup]=Setup.new
		  self[:build]=Build.new
		  self[:test]=Test.new
		  self[:analyze]=Analyze.new
		  self[:doc]=Doc.new
		  self[:publish]=Publish.new
		  self[:add]=Add.new
		  self[:commit]=Commit.new
		  self[:push]=Push.new
	    end
	end

	def info
		puts "Commands"
		self.each{|k,v|
			v.update if v.respond_to? 'update'
			if v.length > 0
				puts " #{k}"
				v.each{|c|
					puts "  #{c}" if(!c.kind_of?(Hash))
				}
			end
		}
	end
end

COMMANDS=Commands.new
MSBUILD=MSBuild.new

Version data entries

106 entries across 106 versions & 1 rubygems

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