Sha256: 7daa76d7f95553102d1e146c206ceaf3e397e2f8e4136e45b383d0639f9e1be6
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
require_relative './color.rb' require 'awesome_print' 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" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dev_tasks-0.0.8 | lib/build.rb |