Sha256: a1c368c44eb4c1e8bb0a479d20cf812c2b06a514811c4afc58825581592b8430
Contents?: true
Size: 938 Bytes
Versions: 8
Compression:
Stored size: 938 Bytes
Contents
module HammerCLIForeman module ComputeResources class GCE < Base def name 'GCE' end def compute_attributes %w[machine_type network associate_external_ip] end def interfaces_attrs_name 'network_interfaces_nics_attributes' end def volume_attributes [ ['size_gb', _('Volume size in GB, integer value')] ] end def provider_specific_fields [ Fields::Field.new(:label => _('Project'), :path => [:project]), Fields::Field.new(:label => _('Email'), :path => [:email]), Fields::Field.new(:label => _('Key Path'), :path => [:key_path]), Fields::Field.new(:label => _('Zone'), :path => [:zone]) ] end def mandatory_resource_options super + %I{project key_path zone} end end HammerCLIForeman.register_compute_resource('gce', GCE.new) end end
Version data entries
8 entries across 8 versions & 1 rubygems