Top Level Namespace

Defined Under Namespace

Modules: Dockly

Instance Method Summary collapse

Instance Method Details

#convert_bc_to_local_bc(docker_name) ⇒ Object



75
76
77
78
79
80
81
82
83
84
85
# File 'lib/dockly/cli.rb', line 75

def convert_bc_to_local_bc(docker_name)
  lbcs = []
  Dockly.docker(docker_name.to_sym).build_cache.each do |bc|
    lbc = Dockly::BuildCache::Local.new! { name bc.name }
    bc.instance_variables.each do |variable|
      lbc.instance_variable_set(variable, bc.instance_variable_get(variable))
    end
    lbcs << lbc
  end
  lbcs
end