Sha256: f9e855245abea24a72e21bc3855ee24669ade72954d3d4ee84c601af5d002b29

Contents?: true

Size: 620 Bytes

Versions: 22

Compression:

Stored size: 620 Bytes

Contents

require_relative './color.rb'

class Build < Array

  def initialize
    # Gem builds, `gem build dev_tasks.spec`
	Dir.glob('*.gemspec') {|f|
	  self.add "gem build #{f}"
	}
	# .sln builds, `"C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe" "MySolution.sln"
	Dir.glob('*.sln'){|f|
	  if File.exist? Build.msbuild
	    self.add "\"#{Build.msbuild}\" \"#{f}\" /nologo /p:Configuration=Release /p:Platform=\"Any CPU\""
	  end
	}
  end

  def self.msbuild
    "C:\\Program Files (x86)\\MSBuild\\12.0\\bin\\msbuild.exe"
  end

  def add command
    self << command if(!include?(command))
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
dev_tasks-0.0.108 lib/build.rb
dev_tasks-0.0.107 lib/build.rb
dev_tasks-0.0.106 lib/build.rb
dev_tasks-0.0.105 lib/build.rb
dev_tasks-0.0.104 lib/build.rb
dev_tasks-0.0.103 lib/build.rb
dev_tasks-0.0.102 lib/build.rb
dev_tasks-0.0.101 lib/build.rb
dev_tasks-0.0.100 lib/build.rb
dev_tasks-0.0.99 lib/build.rb
dev_tasks-0.0.98 lib/build.rb
dev_tasks-0.0.97 lib/build.rb
dev_tasks-0.0.96 lib/build.rb
dev_tasks-0.0.94 lib/build.rb
dev_tasks-0.0.93 lib/build.rb
dev_tasks-0.0.92 lib/build.rb
dev_tasks-0.0.91 lib/build.rb
dev_tasks-0.0.90 lib/build.rb
dev_tasks-0.0.89 lib/build.rb
dev_tasks-0.0.88 lib/build.rb