Skip to content

Commit 3e75720

Browse files
committed
Updated the rake task for installing mspec to default to version 5.0 and VS2010. Modified the version parameter to be resharper_version and added a vs_version for potential VS2008 users.
1 parent 4502b1d commit 3e75720

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

RakeFile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ namespace :setup do
1717
end
1818
end
1919

20-
task :install_mspec, :version do |t, args|
21-
version = args[:version] || '4.5'
20+
task :install_mspec, :resharper_version, :vs_version do |t, args|
21+
resharper_version = args[:resharper_version] || '5.0'
22+
vs_version = args[:vs_version] || 10.0
2223
puts 'Installing MSpec ReSharper runner'
23-
plugins = "#{ENV['APPDATA']}/JetBrains/ReSharper/v#{version}/vs9.0/Plugins"
24-
to_copy = ['Machine.Specifications', "Machine.Specifications.ReSharperRunner.#{version}"]
24+
plugins = "#{ENV['APPDATA']}/JetBrains/ReSharper/v#{resharper_version}/vs#{vs_version}/Plugins"
25+
to_copy = ['Machine.Specifications', "Machine.Specifications.ReSharperRunner.#{resharper_version}"]
2526

2627
FileUtils.mkdir plugins unless File.exists? plugins
2728
to_copy.each do |f|

0 commit comments

Comments
 (0)