Module: Dapp::Project::Command::Tag

Included in:
Dapp::Project
Defined in:
lib/dapp/project/command/tag.rb

Overview

Tag

Instance Method Summary collapse

Instance Method Details

#tag(tag) ⇒ Object

Raises:



8
9
10
11
12
13
14
# File 'lib/dapp/project/command/tag.rb', line 8

def tag(tag)
  one_dimg!
  raise Error::Project, code: :tag_command_incorrect_tag, data: { name: tag } unless Image::Docker.image_name?(tag)
  Dimg.new(config: build_configs.first, project: self, ignore_git_fetch: true, should_be_built: true).tap do |app|
    app.tag!(tag)
  end
end