Class: IronHammer::Utils::DotNetEnvironment
- Inherits:
-
Object
- Object
- IronHammer::Utils::DotNetEnvironment
- Defined in:
- lib/iron_hammer/utils/dot_net_environment.rb
Instance Attribute Summary collapse
-
#framework_path ⇒ Object
Returns the value of attribute framework_path.
-
#visual_studio_path ⇒ Object
Returns the value of attribute visual_studio_path.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ DotNetEnvironment
constructor
A new instance of DotNetEnvironment.
- #msbuild ⇒ Object
- #mstest ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ DotNetEnvironment
Returns a new instance of DotNetEnvironment.
9 10 11 12 |
# File 'lib/iron_hammer/utils/dot_net_environment.rb', line 9 def initialize params={} @framework_path = params[:framework_path] || default_framework_path @visual_studio_path = params[:visual_studio_path] || default_visual_studio_path end |
Instance Attribute Details
#framework_path ⇒ Object
Returns the value of attribute framework_path.
6 7 8 |
# File 'lib/iron_hammer/utils/dot_net_environment.rb', line 6 def framework_path @framework_path end |
#visual_studio_path ⇒ Object
Returns the value of attribute visual_studio_path.
7 8 9 |
# File 'lib/iron_hammer/utils/dot_net_environment.rb', line 7 def visual_studio_path @visual_studio_path end |
Instance Method Details
#msbuild ⇒ Object
14 15 16 |
# File 'lib/iron_hammer/utils/dot_net_environment.rb', line 14 def msbuild [@framework_path, 'msbuild.exe'].patheticalize end |
#mstest ⇒ Object
18 19 20 |
# File 'lib/iron_hammer/utils/dot_net_environment.rb', line 18 def mstest [@visual_studio_path, 'mstest.exe'].patheticalize end |