diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-28 12:23:03 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-02-19 17:24:03 +0100 |
commit | 9972abc2951e2d2c7c4c94189199234c39d25ceb (patch) | |
tree | 82b5d2794ca65a24d48ab154425f7d15fa2e8d46 /lib | |
parent | c1affed19696ec9d78dbca3b5654d41e94282267 (diff) | |
download | gitlab-ce-9972abc2951e2d2c7c4c94189199234c39d25ceb.tar.gz |
Add methods to build eraseable component
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/build/eraseable.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/gitlab/ci/build/eraseable.rb b/lib/gitlab/ci/build/eraseable.rb new file mode 100644 index 00000000000..b7dbc9fb1a9 --- /dev/null +++ b/lib/gitlab/ci/build/eraseable.rb @@ -0,0 +1,25 @@ +module Gitlab + module Ci + module Build + class Eraseable + def initialize(build) + @build = build + end + + def erase! + raise NotImplementedError + end + + def erased? + @build.artifacts_file.exists? && @build.artifacts_metadata.exists? + end + + private + + def trace_file + raise NotImplementedError + end + end + end + end +end |