Module: Chef::Knife::Cloud::OraclecloudServiceOptions
- Included in:
- OraclecloudImageList, OraclecloudOrchestrationDelete, OraclecloudOrchestrationList, OraclecloudOrchestrationShow, OraclecloudServerCreate, OraclecloudServerDelete, OraclecloudServerList, OraclecloudServerShow, OraclecloudShapeList
- Defined in:
- lib/chef/knife/cloud/oraclecloud_service_options.rb
Overview
rubocop:disable Style/AlignParameters
Class Method Summary collapse
Class Method Details
.included(includer) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/chef/knife/cloud/oraclecloud_service_options.rb', line 24 def self.included(includer) includer.class_eval do option :oraclecloud_api_url, long: '--oraclecloud-api-url API_URL', description: 'URL for the oraclecloud API server' option :oraclecloud_username, long: '--oraclecloud-username USERNAME', description: 'Username to use with the oraclecloud API' option :oraclecloud_password, long: '--oraclecloud-password PASSWORD', description: 'Password to use with the oraclecloud API' option :oraclecloud_domain, long: '--oraclecloud-domain IDENTITYDOMAIN', description: 'Identity domain to use with the oraclecloud API' option :oraclecloud_disable_ssl_verify, long: '--oraclecloud-disable-ssl-verify', description: 'Skip any SSL verification for the oraclecloud API', boolean: true, default: false option :oraclecloud_private_cloud, long: '--oraclecloud-private-cloud', description: 'Indicate the --oraclecloud-api-url is a private cloud endpoint', boolean: true, default: false 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 |