Class: Bauble::Cli::CodeBundler

Inherits:
Object
  • Object
show all
Defined in:
lib/bauble/cli/code_bundler.rb

Overview

bundle code

Class Method Summary collapse

Class Method Details

.docker_bundle_gems(gem_path:) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/bauble/cli/code_bundler.rb', line 13

def docker_bundle_gems(gem_path:)
  IO.popen("#{docker_build_gems_command(gem_path)} 2>&1") do |io|
    io.each do |line|
      Logger.docker(line)
    end
  end

  return if last_process_success?

  `rm -rf .bundle`
  Logger.error('Bundle step failed')
  exit
end