This will become a rails application as client for LXD.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
314 B

class Lxd::Config
include ActiveModel::Model
attr_accessor :api, :api_extensions, :api_status, :api_version, :auth,
:config, :environment, :public
def self.get api
return nil unless api
Lxd::Config.new({api: api}.merge api.config)
end
def save
@api.config = @config
end
end
# vim: set ts=2 sw=2: