Sha256: 978fdc7d2b966cf1a2bd3a5d0e7be1b415c922861a2cbab9e33629353ffa9b98
Contents?: true
Size: 920 Bytes
Versions: 2
Compression:
Stored size: 920 Bytes
Contents
require_relative 'ionoscloud_base' class Chef class Knife class IonoscloudPccGet < Knife include Knife::IonoscloudBase banner 'knife ionoscloud pcc get (options)' option :pcc_id, short: '-P PRIVATE_CROSS_CONNECT_ID', long: '--pcc-id PRIVATE_CROSS_CONNECT_ID', description: 'ID of the Private Cross Connect' def initialize(args = []) super(args) @description = 'Retrieves information about a Ionoscloud Private Cross Connect.' @directory = 'compute-engine' @required_options = [:pcc_id, :ionoscloud_username, :ionoscloud_password] end def run $stdout.sync = true handle_extra_config validate_required_params(@required_options, config) print_pcc(Ionoscloud::PrivateCrossConnectsApi.new(api_client).pccs_find_by_id(config[:pcc_id])) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
knife-ionoscloud-6.1.1 | lib/chef/knife/ionoscloud_pcc_get.rb |
knife-ionoscloud-6.1.0 | lib/chef/knife/ionoscloud_pcc_get.rb |