Class: MSBuild

Inherits:
Object
  • Object
show all
Defined in:
lib/msbuild.rb,
lib/msbuild_osx.rb,
lib/msbuild_windows.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version, path) ⇒ MSBuild

Returns a new instance of MSBuild.



12
13
14
15
# File 'lib/msbuild.rb', line 12

def initialize version, path
  @version = version
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



9
10
11
# File 'lib/msbuild.rb', line 9

def path
  @path
end

#versionObject (readonly)

Returns the value of attribute version.



10
11
12
# File 'lib/msbuild.rb', line 10

def version
  @version
end

Class Method Details

.avaliable_versionsObject

Raises:

  • (RuntimeError)


4
5
6
7
# File 'lib/msbuild.rb', line 4

def self.avaliable_versions
  # override me
  raise RuntimeError.new("Unsupported Platform")
end

.registry_pathObject



35
36
37
38
39
40
41
# File 'lib/msbuild_windows.rb', line 35

def self.registry_path
  if OS.is_64bits?
    "Software\\Wow6432Node\\Microsoft\\MSBuild\\ToolsVersions\\"
  else
    "Software\\Microsoft\\MSBuild\\ToolsVersions\\"
  end
end

Instance Method Details

#build(args = nil) ⇒ Object



17
18
19
# File 'lib/msbuild.rb', line 17

def build args=nil
  # override me
end