lib/concourse-binary-builder.rb
# given a platform architecture (e.g. output of `uname -m`) and an
# os name (e.g. output of `uname -o`), output the name of the
# directory binary-builder places the source it uses to
# build the dependency
given a platform architecture  and an
os name , output the name of the
directory binary-builder places the source it uses to
build the dependency
given a platform architecture and an os name output the name of the directory binary - builder places the source it uses to build the dependency
def source_directory
    platform_map = { 'x86_64':  'x86_64',
                     'ppc64le': 'powerpc64le'}
    os_name_map = {'GNU/Linux': 'linux-gnu'}
    "#{platform_map[platform]}-#{os_name_map[os_name]}/"
  end
def source_directory platform_map = { 'x86_64' : 'x86_64' , 'ppc64le' : 'powerpc64le' } os_name_map = { 'GNU/Linux' : 'linux-gnu' } "#{platform_map[platform]}-#{os_name_map[os_name]}/" end
given a platform architecture (e.g.
given a platform architecture ( e . g .