예제 #1
0
파일: beef.py 프로젝트: Drewshg312/Kallisti
def setup():
    child = cmd_stat.gitclone(url_dir, git_repo, cmd_dir)
    if child != 0:
        return child

    # install rbenv
    cmd_stat.cmds_list(deps, 'brew install ')

    # Install ruby and dependencies:
    ruby_ex0 = os.path.exists('%s/.rbenv/versions/2.1.5' % home)
    ruby_ex1 = os.path.exists('/usr/local/var/rbenv/versions/2.1.5')
    os.chdir(cmd_dir)
    if ruby_ex0 or ruby_ex1:
        child = cmd_stat.cmds_list(ruby_deps[1:len(ruby_deps)], '')
    else:
        child = cmd_stat.cmds_list(ruby_deps, '')
    return child
예제 #2
0
def setup():
    child = cmd_stat.cmds_list(cmds, '')
    return child