Sha256: 37e5c7ebfb7227520eca4de005878b6c948906911845261210740981c221dcb2
Contents?: true
Size: 1.29 KB
Versions: 4
Compression:
Stored size: 1.29 KB
Contents
class MonoRepoDeps::Project include MonoRepoDeps::Mixins attr_reader :env, :configs_dir, :package_dirname, :root_path, :packages, :loader, :tasks, :packages_lookup_subdir DEFAULT_OPTIONS = { configs_dir: 'configs', package_dirname: 'package', packages_lookup_subdir: ".", loader: MonoRepoDeps::Loaders::Base, tasks: [] } sig do params( root_path: String, env: Symbol, loader: T.nilable(MonoRepoDeps::Loaders::Base), configs_dir: T.nilable(String), package_dirname: T.nilable(String), packages_lookup_subdir: T.nilable(String), tasks: T.nilable(T::Array[MonoRepoDeps::Task]) ) .void end def initialize(root_path:, env:, loader: nil, configs_dir: nil, package_dirname: nil, packages_lookup_subdir: nil, tasks: nil) @root_path = root_path @env = env @packages = [] @loader = loader || DEFAULT_OPTIONS.fetch(:loader).new(@root_path) @tasks = tasks || DEFAULT_OPTIONS.fetch(:tasks) @configs_dir = configs_dir || DEFAULT_OPTIONS.fetch(:configs_dir) @package_dirname = package_dirname || DEFAULT_OPTIONS.fetch(:package_dirname) @packages_lookup_subdir = packages_lookup_subdir || DEFAULT_OPTIONS.fetch(:packages_lookup_subdir) nil end def set_packages(packages) @packages = packages end end
Version data entries
4 entries across 4 versions & 1 rubygems