require 'fpm/package/dir'
require 'fpm/cookery/package/package'

module FPM
  module Cookery
    module Package
      class Dir < FPM::Cookery::Package::Package
        def fpm_object
          FPM::Package::Dir.new
        end

        def package_setup
          fpm.attributes[:prefix] = '/'
          fpm.attributes[:chdir] = recipe.destdir.to_s
        end

        def package_input
          inputs = config.fetch(:input, nil) || '.'

          Array(inputs).each do |path|
            fpm.input(path)
          end
        end
      end
    end
  end
end

require 'fpm/package/dir'
require 'fpm/cookery/package/package'

module FPM
  module Cookery
    module Package
      class Dir < FPM::Cookery::Package::Package
        def fpm_object
          FPM::Package::Dir.new
        end

        def package_setup
          fpm.attributes[:prefix] = '/'
          fpm.attributes[:chdir] = recipe.destdir.to_s
        end

        def package_input
          inputs = config.fetch(:input, nil) || '.'

          Array(inputs).each do |path|
            fpm.input(path.to_s)
          end
        end
      end
    end
  end
end

Make sure to pass a string to fpm's input method.
Make sure to pass a string to fpm's input method.

Avoids NoMethodError on the Path object. (encoding)
