Sha256: 857b897a9ce7c82d7925a3bfef714169ef7af64be73baa04dc514e8d52f280c3

Contents?: true

Size: 547 Bytes

Versions: 31

Compression:

Stored size: 547 Bytes

Contents

module HammerCLIForeman
  module ComputeResources
    class Base
      def name; ''; end
      def compute_attributes; []; end
      def interface_attributes; []; end # all attributes must start with compute_
      def volume_attributes; []; end
      def interfaces_attrs_name; 'interfaces_attributes'; end
      def host_attributes; []; end
      def provider_specific_fields
        [
          Fields::Field.new(label: _('Url'), path: [:url]) 
        ]
      end
      def mandatory_resource_options; %i[name provider]; end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
hammer_cli_foreman-3.13.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-3.12.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-3.10.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-3.9.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-3.8.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-3.7.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-3.5.1 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-3.6.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-3.5.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-3.4.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-3.3.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-3.2.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-2.5.2 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-3.1.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-3.0.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-2.5.1 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-2.5.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-2.3.2 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-2.4.0 lib/hammer_cli_foreman/compute_resource/base.rb
hammer_cli_foreman-2.3.1 lib/hammer_cli_foreman/compute_resource/base.rb