Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pik refresh should not clobber aliases

  • Loading branch information...
commit 184f575b41a1e365b932010248efbf817a011e4b 1 parent 0dd4014
@vertiginous authored
View
3  lib/pik/commands/add_command.rb
@@ -10,7 +10,7 @@ def execute(path=nil)
add(Pathname(path))
end
- def add(path)
+ def add(path, options={})
path = path.dirname if path.file?
if Which::Ruby.exist?(path)
@@ -34,6 +34,7 @@ def add(path)
config[name][:path] = path
config[name][:version] = version.full_version
config[name][:platform] = version.platform
+ config[name][:alias] = options[:alias] if options[:alias]
end
else
puts "Couldn't find a Ruby version at #{path}"
View
2  lib/pik/commands/refresh_command.rb
@@ -13,7 +13,7 @@ def execute
old_config.each do |version,hash|
- add_cmd.add(hash[:path])
+ add_cmd.add(hash[:path], :alias => hash[:alias])
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.