Class: Bgb::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/bgb.rb

Instance Method Summary collapse

Instance Method Details

#buildObject



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/bgb.rb', line 11

def build
  file_path = options[:file]
  @setting = build_setting(file_path)

  Dir.mktmpdir do |build_path|
    
    git_pull(build_path)
    docker_build(build_path)
    tagging
    push
  end
end

#imagesObject



26
27
28
29
30
31
# File 'lib/bgb.rb', line 26

def images
  file_path = options[:file]
  @setting = build_setting(file_path)
  
  docker_images
end