Get rid of ruby warning from shadowing in SSH command
This commit is contained in:
parent
8b2bf72e8a
commit
c1acdc2409
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue