summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-06-05 19:19:07 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-05 19:19:07 +0300
commit8fd850f1d5997cda17efeccf41dcdab49cf8a81a (patch)
tree4a52a1e052136af8ea25fd681c051d5dbccade32 /lib/api
parent06f586c8e85d100070745e8453bf9dc1b2528451 (diff)
downloadgitlab-ci-8fd850f1d5997cda17efeccf41dcdab49cf8a81a.tar.gz
implementation of variables
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/entities.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 2089e23..2f6565a 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -7,9 +7,15 @@ module API
expose :builds
end
+ class Variable < Grape::Entity
+ expose :key, :value
+ end
+
class Build < Grape::Entity
expose :id, :commands, :path, :ref, :sha, :project_id, :repo_url,
:before_sha, :timeout, :allow_git_fetch, :project_name
+
+ expose :variables, using: Variable
end
class Runner < Grape::Entity