Sha256: 93add3242b6f2151a53da96c82074756ec7b04312a88d3fc30d30a43c660badb
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
class Build < Array def self.discover_commands commands # Gem builds, `gem build dev_tasks.spec` Dir.glob('*.spec') {|f| commands["build"] = Build.new if(!commands.has_key?("build")) commands["build"].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? msbuild commands["build"] = Build.new if(!commands.has_key?("build")) commands["build"].add "\"#{self.msbuild}\" \"#{f}\"" 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.5 | lib/build.rb |