Sha256: 587515503fd7bcfa74da1f4e953644694f9cde342740e41307656c16ab5b1d11

Contents?: true

Size: 1.04 KB

Versions: 94

Compression:

Stored size: 1.04 KB

Contents

if defined?(DEBUG)
    puts DELIMITER
    puts __FILE__
end

require_relative('apps.rb')

require 'json'
require 'rake/clean'
require 'pp'

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[:package]=Package.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[:input]}" if(!c.kind_of?(Hash))
				}
			end
		}
	end
end

COMMANDS=Commands.new
MSBUILD=MSBuild.new

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
dev-2.1.153 lib/commands.rb
dev-2.1.152 lib/commands.rb
dev-2.1.151 lib/commands.rb
dev-2.1.150 lib/commands.rb
dev-2.1.149 lib/commands.rb
dev-2.1.148 lib/commands.rb
dev-2.1.147 lib/commands.rb
dev-2.1.146 lib/commands.rb
dev-2.1.145 lib/commands.rb
dev-2.1.144 lib/commands.rb
dev-2.1.143 lib/commands.rb
dev-2.1.142 lib/commands.rb
dev-2.1.141 lib/commands.rb
dev-2.1.140 lib/commands.rb
dev-2.1.139 lib/commands.rb
dev-2.1.137 lib/commands.rb
dev-2.1.136 lib/commands.rb
dev-2.1.135 lib/commands.rb
dev-2.1.134 lib/commands.rb
dev-2.1.133 lib/commands.rb