Sha256: 2d7cd40c2363d4e8916aeede81f02b146f9107f3db0b041ab382d066595dbf4e

Contents?: true

Size: 833 Bytes

Versions: 13

Compression:

Stored size: 833 Bytes

Contents

module VagrantPlugins
  module CommandUp
    module StartMixins
      # This adds the standard `start` command line flags to the given
      # OptionParser, storing the result in the `options` dictionary.
      #
      # @param [OptionParser] parser
      # @param [Hash] options
      def build_start_options(parser, options)
        # Setup the defaults
        options[:provision_enabled] = true
        options[:provision_types] = nil

        # Add the options
        parser.on("--[no-]provision", "Enable or disable provisioning") do |p|
          options[:provision_enabled] = p
        end

        parser.on("--provision-with x,y,z", Array,
                "Enable only certain provisioners, by type.") do |list|
          options[:provision_types] = list.map { |type| type.to_sym }
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 5 rubygems

Version Path
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/commands/up/start_mixins.rb
tnargav-1.2.3 plugins/commands/up/start_mixins.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/commands/up/start_mixins.rb
vagrant-shell-0.2.6 vendor/bundle/gems/tnargav-1.2.2/plugins/commands/up/start_mixins.rb
vagrant-shell-0.2.5 vendor/bundle/gems/tnargav-1.2.2/plugins/commands/up/start_mixins.rb
tnargav-1.2.2 plugins/commands/up/start_mixins.rb
vagrantup-1.1.3 plugins/commands/up/start_mixins.rb
vagrantup-1.1.2 plugins/commands/up/start_mixins.rb
vagrantup-1.1.1 plugins/commands/up/start_mixins.rb
vagrantup-1.1.0 plugins/commands/up/start_mixins.rb
vagrantup-1.1.4 plugins/commands/up/start_mixins.rb
vagrant-actionio-0.0.9 vendor/bundle/bundler/gems/vagrant-c74251a1d9c0/plugins/commands/up/start_mixins.rb
vagrant-lxc-0.0.1 vendor/vagrant/plugins/commands/up/start_mixins.rb