Skip to content

Commit

Permalink
Merge pull request #4 from schlueter/patch-1
Browse files Browse the repository at this point in the history
Correct indentation in command.rb
  • Loading branch information
rogeriopradoj committed May 7, 2016
2 parents 6cb22de + 3d545bc commit d062bea
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions lib/vagrant-ip-show/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
module Vagrant
module IpShow
class Command < Vagrant.plugin('2', :command)
def self.synopsis
"show all VM ip addresses"
end
def self.synopsis
"show all VM ip addresses"
end

def execute
options = {}
opts = OptionParser.new do |o|
o.banner = "Usage: vagrant ip-show [vmname]"
o.separator ""
o.separator "Options:"
o.separator ""
end
def execute
options = {}
opts = OptionParser.new do |o|
o.banner = "Usage: vagrant ip-show [vmname]"
o.separator ""
o.separator "Options:"
o.separator ""
end

# Parse the options and return if we don't have any target.
argv = parse_options(opts)
return if !argv
# Parse the options and return if we don't have any target.
argv = parse_options(opts)
return if !argv

# Execute the actual SSH
with_target_vms(argv, single_target: true) do |vm|
Expand Down

0 comments on commit d062bea

Please sign in to comment.