Sha256: 3ca8c46776d319440f1c9d3a82d9e7adb957a416a43996b7eab50c93b5ead306

Contents?: true

Size: 907 Bytes

Versions: 1

Compression:

Stored size: 907 Bytes

Contents

module SourceFinder
  # Globber for Python
  module PythonSourceFileGlobber
    attr_accessor :python_dirs_arr, :extra_python_files_arr,
                  :python_file_extensions_arr

    def python_dirs_arr
      @python_dirs_arr ||= %w(src)
    end

    def extra_python_files_arr
      @extra_python_files_arr ||= []
    end

    def python_file_extensions_arr
      make_extensions_arr(@python_file_extensions_glob,
                          @python_file_extensions_arr,
                          %w(py))
    end

    def python_file_extensions_glob
      @python_file_extensions_glob ||= python_file_extensions_arr.join(',')
    end

    def python_files_glob
      make_files_glob(extra_python_files_arr, python_dirs_arr,
                      python_file_extensions_glob)
    end

    def python_files_arr
      exclude_garbage(@globber.glob(python_files_glob) - exclude_files_arr)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
source_finder-2.4.0 lib/source_finder/langs/python.rb