lib/rake/funnel/integration/teamcity/nunit_plugin.rb in rake-funnel-0.18.0 vs lib/rake/funnel/integration/teamcity/nunit_plugin.rb in rake-funnel-0.19.0

- old
+ new

@@ -1,11 +1,11 @@ module Rake module Funnel module Integration module TeamCity class NUnitPlugin - ENV_VAR = 'teamcity.dotnet.nunitaddin' + ENV_VAR = 'teamcity.dotnet.nunitaddin'.freeze class << self def setup(nunit_executable) addins = get_addin_dir(ENV[ENV_VAR]) || return nunit, version = read_version(nunit_executable) || return @@ -14,9 +14,10 @@ copy_addin_files(nunit, addin_files, version) end private + def get_addin_dir(source) return nil unless source File.expand_path(source) end