def create_native_scheduler(rules): """Create a WrappedNativeScheduler, with an initialized native instance.""" rule_index = RuleIndex.create(rules) native = init_native() scheduler = WrappedNativeScheduler(native, '.', './.pants.d', [], rule_index) return scheduler
def create_native_scheduler(self, root_subject_types, rules): init_subsystem(Native.Factory) rule_index = RuleIndex.create(rules) native = Native.Factory.global_instance().create() scheduler = WrappedNativeScheduler(native, '.', './.pants.d', [], rule_index, root_subject_types) return scheduler
def create_scheduler(self, rule_index): native = init_native() scheduler = WrappedNativeScheduler(native=native, build_root='/tmp', work_dir='/tmp/.pants.d', ignore_patterns=tuple(), rule_index=rule_index) return scheduler
def create_scheduler(self, rule_index): native = Native.Factory.global_instance().create() scheduler = WrappedNativeScheduler(native=native, build_root='/tmp', work_dir='/tmp/.pants.d', ignore_patterns=tuple(), rule_index=rule_index) return scheduler
def create_scheduler(self, root_subject_types, rule_index): native = Native.Factory.global_instance().create() scheduler = WrappedNativeScheduler( native=native, build_root='/tmp', ignore_patterns=tuple(), rule_index=rule_index, root_subject_types=root_subject_types) return scheduler
def create_native_scheduler(self, root_subject_types, rules): rule_index = RuleIndex.create(rules) native = init_native() scheduler = WrappedNativeScheduler(native, '.', './.pants.d', [], rule_index, root_subject_types) return scheduler