Module: GemFast

Defined in:
lib/gem-fast.rb,
lib/gem-fast/utils.rb,
lib/gem-fast/command.rb,
lib/gem-fast/version.rb,
lib/gem-fast/remote_fetcher.rb

Defined Under Namespace

Modules: Command, Util Classes: AbstractDownloadStrategy, CurlDownloadStrategy, CurlPostDownloadStrategy, CurlUnsafeDownloadStrategy, NoUnzipCurlDownloadStrategy, RemoteFetcher

Constant Summary collapse

RUBYGEMPLUS_CACHE =
File.join((File.writable?(Gem.dir) ? Gem.dir : Gem.user_dir), 'cache')
RUBYGEMPLUS_USER_AGENT =
"rubygem-gemfast"
VERSION =
'0.0.6.3'

Class Method Summary collapse

Class Method Details

.curl?Boolean

Returns:

  • (Boolean)


11
12
13
14
15
16
17
18
19
20
# File 'lib/gem-fast.rb', line 11

def self.curl?
  curl_ok = false
  begin
    if `curl --version`.strip.size > 0
      curl_ok = true
    end
  rescue Exception => e
  end
  curl_ok
end