6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/dapp/cli/command/options/tag.rb', line 6
def self.extended(klass)
klass.class_eval do
option :tag,
long: '--tag TAG',
description: 'Add tag (can be used one or more times)',
default: [],
proc: proc { |v| composite_options(:tags) << v }
option :tag_branch,
long: '--tag-branch',
description: 'Tag by git branch',
boolean: true
option :tag_build_id,
long: '--tag-build-id',
description: 'Tag by CI build id',
boolean: true
option :tag_ci,
long: '--tag-ci',
description: 'Tag by CI branch and tag',
boolean: true
option :tag_commit,
long: '--tag-commit',
description: 'Tag by git commit',
boolean: true
end
end
|