Class: OpenNebula::Template

Inherits:
Object
  • Object
show all
Defined in:
service/objects/template.rb

Overview

OpenNebula::Template class

Instance Method Summary collapse

Instance Method Details

#win?Boolean

Checks given template OS type by User Input

Returns:

  • (Boolean)


5
6
7
8
# File 'service/objects/template.rb', line 5

def win?
    self.info!
    self.to_hash['VMTEMPLATE']['TEMPLATE']['USER_INPUTS'].include? 'USERNAME'
end