diff options
Diffstat (limited to 'lib/download.rb')
| -rw-r--r-- | lib/download.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/download.rb b/lib/download.rb index 5b824f5..913fd86 100644 --- a/lib/download.rb +++ b/lib/download.rb @@ -43,11 +43,11 @@ module SlackBuilder checksum end - def hosted_sources(absolute_url) + def self.hosted_sources(absolute_url) CONFIG[:download_url] + absolute_url end - def remote_file_exists?(url) + def self.remote_file_exists?(url) uri = URI hosted_sources(url) request = Net::HTTP.new uri.host, uri.port @@ -60,7 +60,7 @@ module SlackBuilder def self.download_and_deploy(uri, tarball) remote_path = tarball[tarball.index('/')..] - if SlackBuilder.remote_file_exists?(remote_path) + if remote_file_exists?(remote_path) uri = URI hosted_sources(remote_path) return download(uri, "slackbuilds/#{tarball}").hexdigest end |
