Sha256: 7e39cd97a4427193200d8c554f882fddb5ee3fc40bfea2fec99b508019ac7d8c

Contents?: true

Size: 714 Bytes

Versions: 1

Compression:

Stored size: 714 Bytes

Contents

require 'optparse'

require_relative "base"
require_relative "mixin_install_opts"

module VagrantPlugins
  module CommandPlugin
    module Command
      class Update < Base
        include MixinInstallOpts

        def execute
          opts = OptionParser.new do |o|
            o.banner = "Usage: vagrant plugin update [names...] [-h]"
            o.separator ""
          end

          # Parse the options
          argv = parse_options(opts)
          return if !argv

          # Update the gem
          action(Action.action_update, {
            plugin_name:        argv,
          })

          # Success, exit status 0
          0
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/bundler/gems/vagrant-c84e05fd063f/plugins/commands/plugin/command/update.rb