require 'pathname'

module MCollective
  module Validator
    class Absolute_file_pathValidator
      def self.validate(path)
        Validator.typecheck(src, :string)
        Validator.validate(src, :shellsafe)

        path = Pathname.new(src)
        raise "Cannot use relative paths" unless path.absolute?
        raise "Path must be a file" unless path.file?
      end
    end
  end
end

require 'pathname'

module MCollective
  module Validator
    class Absolute_file_pathValidator
      def self.validate(raw_path)
        Validator.typecheck(raw_path, :string)
        Validator.validate(raw_path, :shellsafe)

        path = Pathname.new(raw_path)
        raise "Cannot use relative paths" unless path.absolute?
        raise "Path must be a file" unless path.file?
      end
    end
  end
end

Correct variable usage in absolute_file_path validation
Correct variable usage in absolute_file_path validation

The `absolute_file_path` validator was using missmatched variables
halfway through the code.

The commit realigns everything to use more ceoherent and clearer named
variables.
