Navigation Menu

Skip to content

Commit

Permalink
Define target version of Serf as a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jan 6, 2015
1 parent b610cf0 commit 8774c94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/droonga/serf/downloader.rb
Expand Up @@ -34,16 +34,17 @@ class DownloadFailed < StandardError
MAX_RETRY_COUNT = 5
RETRY_INTERVAL = 10

TARGET_VERSION = "0.6.3"

def initialize(output_path)
@output_path = output_path
@retry_count = 0
end

def download
detect_platform
version = "0.6.3"
url_base = "https://dl.bintray.com/mitchellh/serf"
base_name = "#{version}_#{@os}_#{@architecture}.zip"
base_name = "#{TARGET_VERSION}_#{@os}_#{@architecture}.zip"
connection = Faraday.new(url_base) do |builder|
builder.response(:follow_redirects)
builder.adapter(Faraday.default_adapter)
Expand Down

0 comments on commit 8774c94

Please sign in to comment.