Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/lib/pik/runner.rb b/lib/pik/runner.rb
- index e079f17..1c98676 100644
- --- a/lib/pik/runner.rb
- +++ b/lib/pik/runner.rb
- @@ -51,17 +51,16 @@ class Pik
- end
- def run(command)
- - current_ruby = @config[get_version][:path]
- - @config.sort.each do |version,hash|
- - ruby_dir = hash[:path]
- - switch_path_to(ruby_dir)
- + current_ruby = @config[get_version]
- + @config.sort.each do |version, hash|
- + switch_path_to(hash)
- @pik_batch.echo_running_with_ruby_version
- @pik_batch.call command
- @pik_batch.echo "."
- end
- switch_path_to(current_ruby)
- end
- -
- +
- def add(path=::Config::CONFIG['bindir'])
- return add_interactive if @options[:interactive]
- if File.exist?("#{path}/ruby.exe")
Add Comment
Please, Sign In to add comment