Class: MSBuild
- Inherits:
-
Object
- Object
- MSBuild
- Defined in:
- lib/msbuild.rb,
lib/msbuild_osx.rb,
lib/msbuild_windows.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
- #build(args = nil) ⇒ Object
-
#initialize(version, path) ⇒ MSBuild
constructor
A new instance of MSBuild.
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
#path ⇒ Object (readonly)
Returns the value of attribute path.
9 10 11 |
# File 'lib/msbuild.rb', line 9 def path @path end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
10 11 12 |
# File 'lib/msbuild.rb', line 10 def version @version end |
Class Method Details
.avaliable_versions ⇒ Object
4 5 6 7 |
# File 'lib/msbuild.rb', line 4 def self.avaliable_versions # override me raise RuntimeError.new("Unsupported Platform") end |
.registry_path ⇒ Object
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 |