module Chef::Knife::Cloud::VraServiceOptions
rubocop:disable Style/AlignParameters rubocop:disable Metrics/BlockLength
Public Class Methods
included(includer)
click to toggle source
# File lib/chef/knife/cloud/vra_service_options.rb, line 27 def self.included(includer) includer.class_eval do option :vra_base_url, long: "--vra-base-url API_URL", description: "URL for the vRA server", proc: proc { |url| url.sub(%r{/(\/)+$/}, "") } option :vra_username, long: "--vra-username USERNAME", description: "Username to use with the vRA API" option :vra_password, long: "--vra-password PASSWORD", description: "Password to use with the vRA API" option :vra_tenant, long: "--vra-tenant TENANT", description: "Tenant name (organization) to use with the vRA API" option :vra_disable_ssl_verify, long: "--vra-disable-ssl-verify", description: "Skip any SSL verification for the vRA API", boolean: true, default: false option :vra_page_size, long: "--page-size NUM_OF_ITEMS", description: "Maximum number of items to fetch from the vRA API when pagination is forced", default: 200, proc: proc { |page_size| page_size.to_i } option :request_refresh_rate, long: "--request-refresh-rate SECS", description: "Number of seconds to sleep between each check of the request status, defaults to 2", default: 2, proc: proc { |secs| secs.to_i } end end