Sha256: 3a949434f267625c6551b9ce3d25f24eb904bf3c69e19f158e7afefa36e18bda
Contents?: true
Size: 689 Bytes
Versions: 6
Compression:
Stored size: 689 Bytes
Contents
require 'open-uri' module Bozo::Tools class Nuget # Creates a new instance. def initialize @url = 'http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=nuget&DownloadId=697144&FileTime=130190897355830000&Build=20959' 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
6 entries across 6 versions & 1 rubygems