Revision 9a9ec5b1
Added by Daniel Lobato Garcia over 8 years ago
app/models/compute_resources/foreman/model/rackspace.rb | ||
---|---|---|
validates :user, :password, :region, :presence => true
|
||
validate :ensure_valid_region
|
||
|
||
delegate :flavors, :to => :client
|
||
|
||
def provided_attributes
|
||
super.merge({ :ip => :public_ip_address })
|
||
end
|
||
... | ... | |
["rackspace"]
|
||
end
|
||
|
||
def flavors
|
||
client.flavors
|
||
end
|
||
|
||
def available_images
|
||
client.images
|
||
end
|
Also available in: Unified diff
Refs #3809 - Enable Rails delegate cop