
This adds API V3 endpoints for querying, creating, modifying and
deleting environment variables.
It has no concept of encryption yet and should be considered a work in
progress.
We should also talk about the slightly off-track approach in the
EnvVars::Create service – maybe there's a way to standardise the
querying and rendering for post requests?
☕
12 lines
246 B
Ruby
12 lines
246 B
Ruby
module Travis::API::V3
|
|
class Models::EnvVars < Travis::Settings::Collection
|
|
model Models::EnvVar
|
|
|
|
def repository
|
|
@repository ||= Models::Repository.find(additional_attributes[:repository_id])
|
|
end
|
|
|
|
undef :to_hash
|
|
end
|
|
end
|