Sha256: d869beff008f280b03d037cdd68d899a4f8edd33aafcac9987656e9648e6a90c

Contents?: true

Size: 533 Bytes

Versions: 3

Compression:

Stored size: 533 Bytes

Contents

module FogExtensions
  module Xenserver
    module Server

      attr_accessor :memory_min, :memory_max, :custom_template_name, :builtin_template_name

      def to_s
        name
      end

      def nics_attributes=(attrs); end

      def volumes_attributes=(attrs); 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

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_xen-0.0.5.1 app/models/concerns/fog_extensions/xenserver/server.rb
foreman_xen-0.0.5 app/models/concerns/fog_extensions/xenserver/server.rb
foreman_xen-0.0.4.1 app/models/concerns/fog_extensions/xenserver/server.rb