class RakeDependencies::Tasks::Install
Public Instance Methods
ext()
click to toggle source
# File lib/rake_dependencies/tasks/install.rb, line 57 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/install.rb, line 45 def os_id os_ids[platform] end
platform()
click to toggle source
# File lib/rake_dependencies/tasks/install.rb, line 49 def platform RUBY_PLATFORM =~ /darwin/ ? :mac : :linux end
resolved_type()
click to toggle source
# File lib/rake_dependencies/tasks/install.rb, line 53 def resolved_type type.is_a?(Hash) ? type[platform].to_sym : type.to_sym end