Sha256: 97ece476fdfb03d5105c06dc7e659517db9704fbcfd2ff2282e76a2ee8b79b1f
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
module IronWorkerNG module Feature class Base def initialize(code) @code = code end def rebase(path) if IronWorkerNG::Fetcher.remote?(path) || path.start_with?('/') return path end @code.base_dir + path end def container_add(container, dest, src) IronWorkerNG::Fetcher.fetch_to_file(src) do |local_src| if local_src.nil? || (not File.exists?(local_src)) IronCore::Logger.error 'IronWorkerNG', "Can't find src with path='#{src}'", IronCore::Error end if File.directory?(local_src) ::Dir.glob(local_src + '/**/**') do |path| container.add(@code.dest_dir + dest + path[local_src.length .. -1], path) end else container.add(@code.dest_dir + dest, local_src, IronWorkerNG::Fetcher.remote?(src)) end end end def hash_string '' end def bundle(container) end def build_command nil end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
iron_worker_ng-0.11.3 | lib/iron_worker_ng/feature/base.rb |
iron_worker_ng-0.11.2 | lib/iron_worker_ng/feature/base.rb |
iron_worker_ng-0.11.1 | lib/iron_worker_ng/feature/base.rb |