Sha256: 1d5947f634c392019504fbf857510b3e6ca6cf4770f4659c462b828d55970152

Contents?: true

Size: 646 Bytes

Versions: 10

Compression:

Stored size: 646 Bytes

Contents

module Sprout

  module Executable

    ##
    # Concrete Sprout::Executable::Param object for Path values.
    #
    # Path parameters will create a FileList of prerequisites by concatenating the value with
    # the +file_expression+ that is set on the parameter or Sprout::Executable.
    #
    # @see Sprout::Executable::Param
    #
    class Path < Executable::Param

      def prepare_prerequisites
        if(value && !file_is_output?(value))
          files = FileList[value + file_expression]
          files.each do |f|
            file f
            belongs_to.prerequisites << f
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sprout-1.1.14.pre lib/sprout/executable/path.rb
sprout-1.1.13.pre lib/sprout/executable/path.rb
sprout-1.1.11.pre lib/sprout/executable/path.rb
sprout-1.1.10.pre lib/sprout/executable/path.rb
sprout-1.1.7.pre lib/sprout/executable/path.rb
sprout-1.1.5.pre lib/sprout/executable/path.rb
sprout-1.1.4.pre lib/sprout/executable/path.rb
sprout-1.1.3.pre lib/sprout/executable/path.rb
sprout-1.1.2.pre lib/sprout/executable/path.rb
sprout-1.0.35.pre lib/sprout/executable/path.rb