Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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")
Exemplo n.º 4
0
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)
Exemplo n.º 5
0
def ensure():
    if command.exists("npm"):
        return

    install()
Exemplo n.º 6
0
 def _dependencies_requirements_txt(self):
     if command.exists("pip"):
         core.run("pip install -r requirements.txt --use-mirrors")
Exemplo n.º 7
0
 def _dependencies_gemfile(self):
     if command.exists("bundle"):
         core.run("bundle")
Exemplo n.º 8
0
 def _dependencies_package_json(self):
     if command.exists("npm"):
         core.run("npm install")
Exemplo n.º 9
0
def ensure():
    if command.exists('ruby-build'):
        return

    install()
Exemplo n.º 10
0
def ensure():
    if not command.exists('nginx'):
        install()
Exemplo n.º 11
0
 def _dependencies_package_json(self):
     if command.exists("npm"):
         core.run("npm install")
Exemplo n.º 12
0
 def _dependencies_requirements_txt(self):
     if command.exists("pip"):
         core.run("pip install -r requirements.txt --use-mirrors")
Exemplo n.º 13
0
def ensure(fpm=False):
    if command.exists('php5'):
        return

    install(fpm=fpm)
Exemplo n.º 14
0
def ensure():
    if not command.exists("git-extras"):
        install()
Exemplo n.º 15
0
def ensure():
    if not command.exists('stunnel4'):
        install()
Exemplo n.º 16
0
def ensure(version=_VERSION, options=_OPTIONS):
    # TODO Check if version if fulfilled
    if command.exists('redis-server'):
        return

    install(version, options)
Exemplo n.º 17
0
def ensure():
    if not command.exists("git-flow"):
        install()
Exemplo n.º 18
0
def ensure():
    if not command.exists("pythonbrew"):
        install()
Exemplo n.º 19
0
def ensure():
    if command.exists('nginx'):
        return

    install()
Exemplo n.º 20
0
def ensure(version=_VERSION, options=_OPTIONS):
    # TODO Check if version if fulfilled
    if command.exists("redis-server"):
        return

    install(version, options)
Exemplo n.º 21
0
def ensure():
    if command.exists('memcached'):
        return

    install()
Exemplo n.º 22
0
 def _dependencies_gemfile(self):
     if command.exists("bundle"):
         core.run("bundle")
Exemplo n.º 23
0
def ensure():
    if not command.exists("git-chiefs"):
        install()
Exemplo n.º 24
0
def ensure():
    if not command.exists("memcached"):
        install()
Exemplo n.º 25
0
def ensure():
    if not command.exists('stunnel4'):
        install()