From c1acdc2409ce51cee535a89cbea9694281e219d3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 7 Apr 2013 22:10:50 -0700 Subject: [PATCH] Get rid of ruby warning from shadowing in SSH command --- plugins/commands/ssh/command.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/commands/ssh/command.rb b/plugins/commands/ssh/command.rb index 8b3222ee5..f0dc897bc 100644 --- a/plugins/commands/ssh/command.rb +++ b/plugins/commands/ssh/command.rb @@ -6,15 +6,16 @@ module VagrantPlugins def execute options = {} - opts = OptionParser.new do |opts| - opts.banner = "Usage: vagrant ssh [vm-name] [-c command] [-- extra ssh args]" + opts = OptionParser.new do |o| + o.banner = "Usage: vagrant ssh [vm-name] [-c command] [-- extra ssh args]" - opts.separator "" + o.separator "" - opts.on("-c", "--command COMMAND", "Execute an SSH command directly.") do |c| + o.on("-c", "--command COMMAND", "Execute an SSH command directly.") do |c| options[:command] = c end - opts.on("-p", "--plain", "Plain mode, leaves authentication up to user.") do |p| + + o.on("-p", "--plain", "Plain mode, leaves authentication up to user.") do |p| options[:plain_mode] = p end end