resources/default.rb
# Helper method to resolve the architecture of the upstream release archive. 
# I intentionally do not use the chef-sugar methods pulled into later versions of chef here since they
# introduce more complexity and less control. They also result in making very ugly code in comparison.
Helper method to resolve the architecture of the upstream release archive.
I intentionally do not use the chef-sugar methods pulled into later versions of chef here since they
introduce more complexity and less control. They also result in making very ugly code in comparison.
Helper method to resolve the architecture of the upstream release archive . I intentionally do not use the chef - sugar methods pulled into later versions of chef here since they introduce more complexity and less control . They also result in making very ugly code in comparison .
def bin_arch
    case node['kernel']['machine']
    when 'x86_64'
      '-x64'
    when 'armv6l', 'armv7l', 'armhf'
      '-arm'
    when 'aarch64'
      '-arm64'
    else
      '' 
    end
  end
def bin_arch case node [ 'kernel' ] [ 'machine' ] when 'x86_64' '-x64' when 'armv6l' , 'armv7l' , 'armhf' '-arm' when 'aarch64' '-arm64' else '' end end
Helper method to resolve the architecture of the upstream release archive.
Helper method to resolve the architecture of the upstream release archive .
# X86 32 bit has no string identifier in the upstream filename