Class: IronHammer::Utils::DotNetEnvironment

Inherits:
Object
  • Object
show all
Defined in:
lib/iron_hammer/utils/dot_net_environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathObject

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_pathObject

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

#msbuildObject



14
15
16
# File 'lib/iron_hammer/utils/dot_net_environment.rb', line 14

def msbuild
  [@framework_path, 'msbuild.exe'].patheticalize
end

#mstestObject



18
19
20
# File 'lib/iron_hammer/utils/dot_net_environment.rb', line 18

def mstest
  [@visual_studio_path, 'mstest.exe'].patheticalize
end