Class: Bgb::CLI

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

Instance Method Summary collapse

Instance Method Details

#buildObject



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

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



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

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