Sha256: 60a3ab5dc2c90e0ba52fe439f81b580d8340b33902397369b629662f4ac15cbc

Contents?: true

Size: 506 Bytes

Versions: 31

Compression:

Stored size: 506 Bytes

Contents

#--
# Copyright (c) 2010-2012 Engine Yard, Inc.
# Copyright (c) 2007-2009 Sun Microsystems, Inc.
# This source code is available under the MIT license.
# See the file LICENSE.txt for details.
#++

module Warbler
  module PathmapHelper
    def apply_pathmaps(config, file, pathmaps)
      file = file.to_s
      file = file[2..-1] if file =~ /^\.\//
      pathmaps = config.pathmaps.send(pathmaps)
      pathmaps.each do |p|
        file = file.pathmap(p)
      end if pathmaps
      file
    end
  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
warbler_updated-2.1.0 lib/warbler/pathmap_helper.rb
warbler-2.0.5 lib/warbler/pathmap_helper.rb
warbler-2.0.4 lib/warbler/pathmap_helper.rb
warbler-1.4.10 lib/warbler/pathmap_helper.rb
warbler-2.0.3 lib/warbler/pathmap_helper.rb
warbler-2.0.2 lib/warbler/pathmap_helper.rb
warbler-2.0.1 lib/warbler/pathmap_helper.rb
warbler-2.0.0 lib/warbler/pathmap_helper.rb
warbler-2.0.0.rc3 lib/warbler/pathmap_helper.rb
warbler-2.0.0.rc2 lib/warbler/pathmap_helper.rb
warbler-2.0.0.rc1 lib/warbler/pathmap_helper.rb
warbler-2.0.0.pre3 lib/warbler/pathmap_helper.rb
warbler-2.0.0.pre2 lib/warbler/pathmap_helper.rb
warbler-1.4.9 lib/warbler/pathmap_helper.rb
warbler-1.4.8 lib/warbler/pathmap_helper.rb
warbler-2.0.0.pre1 lib/warbler/pathmap_helper.rb
warbler-1.4.7 lib/warbler/pathmap_helper.rb
warbler-1.4.6 lib/warbler/pathmap_helper.rb
warbler-1.4.5 lib/warbler/pathmap_helper.rb
warbler-1.4.4 lib/warbler/pathmap_helper.rb