Example #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)
Example #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)
Example #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")
Example #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)
Example #5
0
def ensure():
    if command.exists("npm"):
        return

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

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

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

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

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

    install(version, options)
Example #21
0
def ensure():
    if command.exists('memcached'):
        return

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