• Home
  • Raw
  • Download

Lines Matching refs:arguments

900 def _send_email(arguments, tag, subject, recipients, body):  argument
922 if arguments.debug:
925 filename = os.path.join(arguments.logdir, tag)
973 def _perform_model_inventory(arguments, inventory, timestamp): argument
989 if arguments.recommend:
991 inventory, arguments.recommend) + '\n\n\n'
995 _send_email(arguments,
998 arguments.model_notify,
1002 def _perform_pool_inventory(arguments, inventory, timestamp): argument
1019 _send_email(arguments,
1022 arguments.pool_notify,
1121 def _log_startup(arguments, startup_time): argument
1136 if arguments.model_notify:
1137 if arguments.recommend:
1140 if arguments.pool_notify:
1145 def _create_inventory(arguments, end_time): argument
1151 start_time = end_time - arguments.duration * 60 * 60
1154 afe, start_time, end_time, arguments.modelnames)
1161 def _perform_inventory_reports(arguments): argument
1171 timestamp = _log_startup(arguments, startup_time)
1172 inventory = _create_inventory(arguments, startup_time)
1173 if arguments.debug:
1175 if arguments.model_notify:
1176 _perform_model_inventory(arguments, inventory, timestamp)
1177 if arguments.pool_notify:
1178 _perform_pool_inventory(arguments, inventory, timestamp)
1179 if arguments.report_untestable:
1196 def _verify_arguments(arguments): argument
1214 arguments.model_notify = _separate_email_addresses(
1215 arguments.model_notify)
1216 arguments.pool_notify = _separate_email_addresses(
1217 arguments.pool_notify)
1218 if not any([arguments.model_notify, arguments.pool_notify,
1219 arguments.report_untestable]):
1220 if not arguments.debug:
1229 arguments.model_notify = ['']
1230 arguments.pool_notify = ['']
1292 arguments = parser.parse_args(argv[1:])
1293 if not _verify_arguments(arguments):
1295 return arguments
1298 def _configure_logging(arguments): argument
1319 if arguments.debug:
1324 if not os.path.exists(arguments.logdir):
1325 os.mkdir(arguments.logdir)
1327 logfile = os.path.join(arguments.logdir, _LOGFILE)
1348 arguments = _parse_command(argv)
1349 if not arguments:
1351 _configure_logging(arguments)
1354 if arguments.use_metrics:
1355 if arguments.debug:
1366 _perform_inventory_reports(arguments)
1373 _perform_inventory_reports(arguments)