Revision ab3d6fb4
Added by Daniel Lobato Garcia about 8 years ago
app/models/concerns/fog_extensions/digitalocean/server.rb | ||
---|---|---|
module Server
|
||
extend ActiveSupport::Concern
|
||
|
||
attr_accessor :image_id
|
||
|
||
def identity_to_s
|
||
identity.to_s
|
||
end
|
||
... | ... | |
[public_ip_address, private_ip_address].flatten.select(&:present?)
|
||
end
|
||
|
||
def state
|
||
requires :status
|
||
@state ||= status
|
||
end
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #11332 - DigitalOcean API v2 support
This should allow provisioning using API v2. It relies on Fog 1.36 at
The plugin now:least to work, so 1.10 and older versions of Foreman will not work with
this plugin unfortunately.
client_id
task