Sha256: 8cac29e0f34c02711b08fd1da3a81408b592bb01900b994893cf07d48185fccd
Contents?: true
Size: 890 Bytes
Versions: 9
Compression:
Stored size: 890 Bytes
Contents
puts __FILE__ if defined?(DEBUG) require 'json' require 'rake/clean' #Dir.glob("#{File.dirname(__FILE__)}/commands/*.rb").each{|rb| # require(rb) #} 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}" } end } end end COMMANDS=Commands.new MSBUILD=MSBuild.new
Version data entries
9 entries across 9 versions & 1 rubygems