Sha256: 9ac521b7ecfbfbbcfe97eae347699a02e810d2a83dd4bc004ebdde3324985f6a

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

module VagrantPlugins
  module CommandPlugin
    module Command
      module MixinInstallOpts
        def build_install_opts(o, options)
          o.on("--entry-point NAME", String,
               "The name of the entry point file for loading the plugin.") do |entry_point|
            options[:entry_point] = entry_point
          end

          # @deprecated
          o.on("--plugin-prerelease",
               "Allow prerelease versions of this plugin.") do |plugin_prerelease|
            puts "--plugin-prelease is deprecated and will be removed in the next"
            puts "version of Vagrant. It has no effect now. Use the '--plugin-version'"
            puts "flag to get a specific pre-release version."
            puts
          end

          o.on("--plugin-source PLUGIN_SOURCE", String,
               "Add a RubyGems repository source") do |plugin_source|
            options[:plugin_sources] ||= []
            options[:plugin_sources] << plugin_source
          end

          o.on("--plugin-version PLUGIN_VERSION", String,
               "Install a specific version of the plugin") do |plugin_version|
            options[:plugin_version] = plugin_version
          end
        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/mixin_install_opts.rb