class Litterbox::Habitat::Build
Habitat
build
Public Class Methods
new(dir)
click to toggle source
# File lib/litterbox/habitat/build.rb, line 7 def initialize(dir) @dir = dir end
Public Instance Methods
build(dir = '.')
click to toggle source
# File lib/litterbox/habitat/build.rb, line 11 def build(dir = '.') Open3.popen3("cd #{@dir} && hab pkg build #{dir}") do |_, stderr, _, _| while (line = stderr.gets) puts(line) end end end