Sha256: 5e3f0a15394a3276866ca8b62dd257f1d572bb400ea3db3be9152f0a26eff2e9
Contents?: true
Size: 823 Bytes
Versions: 7
Compression:
Stored size: 823 Bytes
Contents
module Dev class Paths < Hash def initialize ["v4.0.30319","v3.5","v3.0","v2.0.50727"].each { |v| f="C:/WINDOWS/Microsoft.NET/Framework/#{v}/MSBuild.exe" self[:msbuild]=f if File.exists?(f) && self[:msbuild].nil? f="C:/WINDOWS/Microsoft.NET/Framework/#{v}/RegAsm.exe" self[:regasm]=f if File.exists?(f) && self[:regasm].nil? } ["2.6.0.12051","2.5.10.11092"].each{ |v| Dir.glob("#{Dev::Environment.dev_root}/dep/*/NUnit/#{v}/bin/nunit-console-x86.exe").each{|f| self[:nunit]=f if File.exists?(f) && self[:nunit].nil? } if( !self.has_key?(:nunit) ) Dir.glob("#{Dev::Environment.dev_root}/dep/*/NUnit/#{v}/bin/*/nunit-console-x86.exe").each{|f| self[:nunit]=f if File.exists?(f) && self[:nunit].nil? } end } end end # class Paths end # module Dev
Version data entries
7 entries across 7 versions & 1 rubygems