Sha256: 9de8314d69d4bd308cb2458d1af64a7e3849b8725ddf525e01c2b613ea47a03e
Contents?: true
Size: 880 Bytes
Versions: 3
Compression:
Stored size: 880 Bytes
Contents
module HammerCLIForeman module ComputeResources class GCE < Base def name 'GCE' end def compute_attributes %w[machine_type image_id 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]), ] 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
3 entries across 3 versions & 1 rubygems