示例#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)
示例#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)
示例#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")
示例#4
0
文件: ruby.py 项目: 5monkeys/revolver
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)
示例#5
0
文件: npm.py 项目: 5monkeys/revolver
def ensure():
    if command.exists("npm"):
        return

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

    install()
示例#10
0
def ensure():
    if not command.exists('nginx'):
        install()
示例#11
0
 def _dependencies_package_json(self):
     if command.exists("npm"):
         core.run("npm install")
示例#12
0
 def _dependencies_requirements_txt(self):
     if command.exists("pip"):
         core.run("pip install -r requirements.txt --use-mirrors")
示例#13
0
文件: php.py 项目: 5monkeys/revolver
def ensure(fpm=False):
    if command.exists('php5'):
        return

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

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

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

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

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