Module: Docker::Template::Notify
- Defined in:
- lib/docker/template/notify.rb
Class Method Summary collapse
-
.alias(builder) ⇒ Object
———————————————————————- Notify the user that we are tag aliasing.
-
.build(repo, **kwd) ⇒ Object
———————————————————————- Notify the user that we are building their repository.
-
.push(builder) ⇒ Object
———————————————————————- Notify the user of a push that is happening.
Class Method Details
.alias(builder) ⇒ Object
Notify the user that we are tag aliasing.
26 27 28 29 30 31 |
# File 'lib/docker/template/notify.rb', line 26 def alias(builder) repo = builder.repo aliased_repo = builder.aliased_repo msg = Simple::Ansi.green("Aliasing #{repo} -> #{aliased_repo}") $stderr.puts msg end |
.build(repo, **kwd) ⇒ Object
Notify the user that we are building their repository.
37 38 39 40 41 |
# File 'lib/docker/template/notify.rb', line 37 def build(repo, **kwd) img = repo.to_s(**kwd) msg = Simple::Ansi.green("Building: #{img}") $stderr.puts msg end |
.push(builder) ⇒ Object
Notify the user of a push that is happening.
16 17 18 19 20 |
# File 'lib/docker/template/notify.rb', line 16 def push(builder) $stderr.puts Simple::Ansi.green( "Pushing: #{builder.repo}" ) end |