def op_check_this_system(): LOG.info("Checking dependencies:") LOG.info(" -> Docker? : {}".format( "Yes" if Utils.is_docker_available() else "No" )) LOG.info(" -> Git? : {}".format( "Yes" if Utils.is_git_available() else "No" )) if Utils.platform() == "darwin": LOG.info(" -> Command line tools? : {}".format( "Yes" if Utils.is_xcode_available() else "No" )) LOG.info(" -> Java 8? : {}".format( "Yes" if Utils.is_java_available() else "No" )) LOG.info(" -> Maven? : {}".format( "Yes" if Utils.is_git_available() else "No" )) LOG.info(" -> Subversion 1.9.x? : {}".format( "Yes" if Utils.is_svn_available() else "No" )) LOG.info(" -> autoconf? : {}".format( "Yes" if Utils.is_autoconf_available() else "No" )) LOG.info(" -> automake? : {}".format( "Yes" if Utils.is_automake_available() else "No" )) LOG.info(" -> libtool? : {}".format( "Yes" if Utils.is_libtool_available() else "No" )) LOG.info(" -> apr? : {}".format( "Yes" if Utils.is_apr_available() else "No" ))
def validate_input(): mesos_version = MesosConfig.mesos_version() operating_system = MesosConfig.operating_system() if mesos_version == "": Utils.exit_with_cmd_error( __file__, "Mesos version not given. Run with show-releases to see what the available versions are.") if operating_system == "": Utils.exit_with_cmd_error( __file__, "Operating system not given. Available values: {}".format( str(MesosConfig.supported_operating_systems()) )) if not mesos_version in list_releases(): Utils.exit_with_cmd_error( __file__, "Mesos version ({}) is not supported. Run with show-releases to see what the available versions are.".format( mesos_version )) if not operating_system in MesosConfig.supported_operating_systems(): Utils.exit_with_cmd_error( __file__, "Operating system ({}) is not supported. Available values: {}".format( operating_system, str(MesosConfig.supported_operating_systems()) )) if operating_system == "osx" and Utils.platform() != "darwin": Utils.exit_with_cmd_error( __file__, "Operating system (osx) is only supported when running this program on OS X." )