class RakeDependencies::Tasks::Extract
Private Instance Methods
ext()
click to toggle source
# File lib/rake_dependencies/tasks/extract.rb, line 96 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
extractor_for_extension()
click to toggle source
# File lib/rake_dependencies/tasks/extract.rb, line 80 def extractor_for_extension extractors[resolved_type] end
os_id()
click to toggle source
# File lib/rake_dependencies/tasks/extract.rb, line 84 def os_id os_ids[platform] end
platform()
click to toggle source
# File lib/rake_dependencies/tasks/extract.rb, line 88 def platform RUBY_PLATFORM =~ /darwin/ ? :mac : :linux end
resolved_type()
click to toggle source
# File lib/rake_dependencies/tasks/extract.rb, line 92 def resolved_type type.is_a?(Hash) ? type[platform].to_sym : type.to_sym end