class FPM::Fry::Source::Dir
Constants
- REGEX
Attributes
url[RW]
Public Class Methods
guess( url )
click to toggle source
# File lib/fpm/fry/source/dir.rb, line 17 def self.guess( url ) Source::guess_regex(REGEX, url) end
name()
click to toggle source
# File lib/fpm/fry/source/dir.rb, line 13 def self.name :dir end
new( url, options = {} )
click to toggle source
# File lib/fpm/fry/source/dir.rb, line 50 def initialize( url, options = {} ) @url = URI(url) if @url.relative? @url.path = File.expand_path(@url.path) end @logger = options.fetch(:logger){ Cabin::Channel.get } @file_map = options[:file_map] @to = options[:to] end
Public Instance Methods
build_cache(_)
click to toggle source
# File lib/fpm/fry/source/dir.rb, line 60 def build_cache(_) Cache.new(self, url.path) end