travis-api/lib/travis/api/v3/services.rb
Joe Corcoran 871b915515 Add env vars endpoints
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?

2016-07-01 23:55:49 -04:00

33 lines
1.3 KiB
Ruby

module Travis::API::V3
module Services
extend ConstantResolver
Accounts = Module.new { extend Services }
Branch = Module.new { extend Services }
Branches = Module.new { extend Services }
Broadcast = Module.new { extend Services }
Broadcasts = Module.new { extend Services }
Build = Module.new { extend Services }
Builds = Module.new { extend Services }
Cron = Module.new { extend Services }
Crons = Module.new { extend Services }
EnvVar = Module.new { extend Services }
EnvVars = Module.new { extend Services }
Job = Module.new { extend Services }
Jobs = Module.new { extend Services }
Lint = Module.new { extend Services }
Organization = Module.new { extend Services }
Organizations = Module.new { extend Services }
Owner = Module.new { extend Services }
Repositories = Module.new { extend Services }
Repository = Module.new { extend Services }
Requests = Module.new { extend Services }
Settings = Module.new { extend Services }
User = Module.new { extend Services }
def result_type
@result_type ||= name[/[^:]+$/].underscore.to_sym
end
end
end