Sha256: 7cd068331793599fbee5c26dfec5a62a1d04614d45383b9d91d4c91c2cb089a0

Contents?: true

Size: 991 Bytes

Versions: 87

Compression:

Stored size: 991 Bytes

Contents

puts __FILE__ if ENV.has_key?('DEBUG')

require_relative('apps.rb')

require 'json'
require 'rake/clean'

Dir.glob("#{File.dirname(__FILE__)}/tasks/*.rb").each{|rb| 
  require(rb) if !rb.include?('default')
}
class Commands < Hash
	attr_accessor :env
	def initialize env=nil,directory=Rake.application.original_dir
		@env=env
		@env=Environment.new() if @env.nil?
		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

87 entries across 87 versions & 1 rubygems

Version Path
dev-2.1.57 lib/commands.rb
dev-2.1.56 lib/commands.rb
dev-2.1.55 lib/commands.rb
dev-2.1.54 lib/commands.rb
dev-2.1.53 lib/commands.rb
dev-2.1.52 lib/commands.rb
dev-2.1.51 lib/commands.rb
dev-2.1.50 lib/commands.rb
dev-2.1.49 lib/commands.rb
dev-2.1.48 lib/commands.rb
dev-2.1.47 lib/commands.rb
dev-2.1.46 lib/commands.rb
dev-2.1.45 lib/commands.rb
dev-2.1.44 lib/commands.rb
dev-2.1.43 lib/commands.rb
dev-2.1.42 lib/commands.rb
dev-2.1.41 lib/commands.rb
dev-2.1.40 lib/commands.rb
dev-2.1.39 lib/commands.rb
dev-2.1.38 lib/commands.rb