Guest User

Untitled

a guest
Jun 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. diff --git a/lib/pik/runner.rb b/lib/pik/runner.rb
  2. index e079f17..1c98676 100644
  3. --- a/lib/pik/runner.rb
  4. +++ b/lib/pik/runner.rb
  5. @@ -51,17 +51,16 @@ class Pik
  6. end
  7.  
  8. def run(command)
  9. - current_ruby = @config[get_version][:path]
  10. - @config.sort.each do |version,hash|
  11. - ruby_dir = hash[:path]
  12. - switch_path_to(ruby_dir)
  13. + current_ruby = @config[get_version]
  14. + @config.sort.each do |version, hash|
  15. + switch_path_to(hash)
  16. @pik_batch.echo_running_with_ruby_version
  17. @pik_batch.call command
  18. @pik_batch.echo "."
  19. end
  20. switch_path_to(current_ruby)
  21. end
  22. -
  23. +
  24. def add(path=::Config::CONFIG['bindir'])
  25. return add_interactive if @options[:interactive]
  26. if File.exist?("#{path}/ruby.exe")
Add Comment
Please, Sign In to add comment