Sha256: f55e393af57f4f93ef3238b0352d7b3c4b8c206e8aa0835b7aa3bc0ac514d2b3
Contents?: true
Size: 584 Bytes
Versions: 29
Compression:
Stored size: 584 Bytes
Contents
require 'open-uri' module Bozo::Tools class Nuget # Creates a new instance. def initialize @url = 'https://nuget.org/nuget.exe' end # Sets the source url for the nuget tool to be retreived from # # @param [String] url # A web server hosting the nuget tool def source(url) @url = url end # Retreives the nuget tool exe from the path def retrieve(destination_path) open(File.join(destination_path, 'nuget.exe'), 'wb') do |file| file << open(@url).read end end end end
Version data entries
29 entries across 29 versions & 1 rubygems