Sha256: 34ce624f994ae25a4c386c22a8a341be265b357a7d1727218ba4840a25fe3ad9

Contents?: true

Size: 563 Bytes

Versions: 10

Compression:

Stored size: 563 Bytes

Contents

module Sprout

  module Executable

    ##
    # Concrete param object for collections of files
    #
    # @see Sprout::Executable::FileParam
    # @see Sprout::Executable::Param
    # @see Sprout::Executable::CollectionParam
    #
    class Files < Executable::Param
      include CollectionParam

      def to_shell_value
        value.collect do |path|
          clean_path path
        end
      end

      def prepare_prerequisites
        value.each do |f|
          file f
          belongs_to.prerequisites << f
        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/files.rb
sprout-1.1.13.pre lib/sprout/executable/files.rb
sprout-1.1.11.pre lib/sprout/executable/files.rb
sprout-1.1.10.pre lib/sprout/executable/files.rb
sprout-1.1.7.pre lib/sprout/executable/files.rb
sprout-1.1.5.pre lib/sprout/executable/files.rb
sprout-1.1.4.pre lib/sprout/executable/files.rb
sprout-1.1.3.pre lib/sprout/executable/files.rb
sprout-1.1.2.pre lib/sprout/executable/files.rb
sprout-1.0.35.pre lib/sprout/executable/files.rb