class RakeDependencies::Tasks::Download

Private Instance Methods

ext() click to toggle source
# File lib/rake_dependencies/tasks/download.rb, line 62
def ext
  case resolved_type
  when :tar_gz then
    '.tar.gz'
  when :tgz then
    '.tgz'
  when :zip then
    '.zip'
  when :uncompressed then
    ''
  else
    raise "Unknown type: #{type}"
  end
end
os_id() click to toggle source
# File lib/rake_dependencies/tasks/download.rb, line 50
def os_id
  os_ids[platform]
end
platform() click to toggle source
# File lib/rake_dependencies/tasks/download.rb, line 54
def platform
  RUBY_PLATFORM =~ /darwin/ ? :mac : :linux
end
resolved_type() click to toggle source
# File lib/rake_dependencies/tasks/download.rb, line 58
def resolved_type
  type.is_a?(Hash) ? type[platform].to_sym : type.to_sym
end