Sha256: ff55d808b2d08c05e4e54c24e9b9d23b8223234f04761d255c30e26b17fd3b2b

Contents?: true

Size: 630 Bytes

Versions: 26

Compression:

Stored size: 630 Bytes

Contents

require 'optparse'

require_relative "base"

module VagrantPlugins
  module CommandPlugin
    module Command
      class Repair < Base
        def execute
          opts = OptionParser.new do |o|
            o.banner = "Usage: vagrant plugin repair [-h]"
          end

          # Parse the options
          argv = parse_options(opts)
          return if !argv
          raise Vagrant::Errors::CLIInvalidUsage, help: opts.help.chomp if argv.length > 0

          # Attempt to repair installed plugins
          action(Action.action_repair)

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

Version data entries

26 entries across 22 versions & 4 rubygems

Version Path
vagrant-unbundled-2.1.2.0 plugins/commands/plugin/command/repair.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/commands/plugin/command/repair.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/commands/plugin/command/repair.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/commands/plugin/command/repair.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/commands/plugin/command/repair.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/commands/plugin/command/repair.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/commands/plugin/command/repair.rb
vagrant-unbundled-2.1.1.0 plugins/commands/plugin/command/repair.rb
vagrant-unbundled-2.0.4.0 plugins/commands/plugin/command/repair.rb
vagrant-unbundled-2.0.3.0 plugins/commands/plugin/command/repair.rb
vagrant-aws-detiber-0.7.2.pre.4 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/commands/plugin/command/repair.rb
vagrant-aws-detiber-0.7.2.pre.3 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/commands/plugin/command/repair.rb
vagrant-aws-detiber-0.7.2.pre.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/commands/plugin/command/repair.rb
vagrant-unbundled-2.0.2.0 plugins/commands/plugin/command/repair.rb
vagrant-unbundled-2.0.1.0 plugins/commands/plugin/command/repair.rb
vagrant-aws-mkubenka-0.7.2.pre.22 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-f3fdbf414272/plugins/commands/plugin/command/repair.rb
vagrant-aws-mkubenka-0.7.2.pre.16 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-1ee58c40e3f5/plugins/commands/plugin/command/repair.rb
vagrant-unbundled-2.0.0.1 plugins/commands/plugin/command/repair.rb
vagrant-unbundled-1.9.8.1 plugins/commands/plugin/command/repair.rb
vagrant-unbundled-1.9.7.1 plugins/commands/plugin/command/repair.rb