Sha256: f78555c20c6d7aa56445acfb5b851536d00f6315f7caa8dd5c6dc8f97d6b28a6

Contents?: true

Size: 695 Bytes

Versions: 3

Compression:

Stored size: 695 Bytes

Contents

module FogExtensions
  module Xenserver
    module Server

      def to_s
        name
      end

      def nics_attributes=(attrs); end

      def volumes_attributes=(attrs); end

      def memory_min
        memory_static_min.to_i
      end

      def memory_max
        memory_static_max.to_i
      end

      def memory
        memory_static_max.to_i
      end

      def reset
        reboot
      end

      def ready?
        running?
      end

      def mac
        vifs.first.mac
      end

      def state
        power_state
      end

      def custom_template_name
        template_name
      end

      def builtin_template_name
        template_name
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_xen-0.0.3 app/models/concerns/fog_extensions/xenserver/server.rb
foreman_xen-0.0.2 app/models/concerns/fog_extensions/xenserver/server.rb
foreman_xen-0.0.1 app/models/concerns/fog_extensions/xenserver/server.rb