def ensure(server=False, password=None): commands_found = True if not command.exists("mysql"): commands_found = False if server and not command.exists("mysqld"): commands_found = False if not commands_found: install(server=server, password=password)
def install(): package.ensure("curl") if not command.exists("pythonbrew"): url = "https://raw.github.com" \ + "/utahta/pythonbrew/master/pythonbrew-install" run("curl -s %s | bash" % url) else: run("pythonbrew update")
def ensure(version=_VERSION): if command.exists('ruby'): raw_installed_version = run('ruby -v | cut -d" " -f2') installed_version = _convert_version_to_string(raw_installed_version) else: installed_version = '0' required_version = _convert_version_to_string(version) if installed_version < required_version: install(version)
def ensure(): if command.exists("npm"): return install()
def _dependencies_requirements_txt(self): if command.exists("pip"): core.run("pip install -r requirements.txt --use-mirrors")
def _dependencies_gemfile(self): if command.exists("bundle"): core.run("bundle")
def _dependencies_package_json(self): if command.exists("npm"): core.run("npm install")
def ensure(): if command.exists('ruby-build'): return install()
def ensure(): if not command.exists('nginx'): install()
def ensure(fpm=False): if command.exists('php5'): return install(fpm=fpm)
def ensure(): if not command.exists("git-extras"): install()
def ensure(): if not command.exists('stunnel4'): install()
def ensure(version=_VERSION, options=_OPTIONS): # TODO Check if version if fulfilled if command.exists('redis-server'): return install(version, options)
def ensure(): if not command.exists("git-flow"): install()
def ensure(): if not command.exists("pythonbrew"): install()
def ensure(): if command.exists('nginx'): return install()
def ensure(version=_VERSION, options=_OPTIONS): # TODO Check if version if fulfilled if command.exists("redis-server"): return install(version, options)
def ensure(): if command.exists('memcached'): return install()
def ensure(): if not command.exists("git-chiefs"): install()
def ensure(): if not command.exists("memcached"): install()