lib/packer/binary/executable.rb in packer-binary-0.1.0 vs lib/packer/binary/executable.rb in packer-binary-0.1.1

- old
+ new

@@ -3,11 +3,12 @@ class Executable include Packer::Binary::Helpers def initialize @packer_version = Packer::Binary.config.version - @download_path = "#{Packer::Binary.config.download_path}/packer-binary/#{@packer_version}/bin" + @download_path = "#{Packer::Binary.config.download_path.chomp('/')}/packer-binary/#{@packer_version}/bin" @download_filename = "#{@packer_version}-packer.zip" + FileUtils.mkdir_p @download_path raise 'Your OS is not supported' unless supported? end