Method: Slideshow::Fetch#fetch_quick
- Defined in:
- lib/slideshow/commands/fetch.rb
#fetch_quick(src) ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/slideshow/commands/fetch.rb', line 73 def fetch_quick( src ) uri = URI.parse( src ) logger.debug "scheme: #{uri.scheme}, host: #{uri.host}, port: #{uri.port}, path: #{uri.path}" # downcase basename w/ extension (remove .txt) pakname = File.basename( uri.path ).downcase.gsub('.txt','') pakpath = File.( "#{config.config_dir}/templates/#{pakname}" ) logger.debug "pakname >#{pakname}<" logger.debug "pakpath >#{pakpath}<" Pakman::Fetcher.new.fetch_pak( src, pakpath ) end |