def install(version, _update=True): ruby_rbenv.ensure() ruby_build.ensure() status = run("rbenv global %s; true" % version) if not status == "" or _update: run("rbenv install %s" % version) run("rbenv global %s" % version) run("rbenv rehash") run("gem install --no-ri --no-rdoc bundler")
def install(): package.ensure("git-core") package.ensure([ "build-essential", "zlib1g-dev", "libssl-dev", "libxml2-dev", "libsqlite3-dev" ]) ruby_rbenv.ensure() dir.ensure(".rbenv/plugins") with ctx.cd(".rbenv/plugins"): if not dir.exists("ruby-build"): run("git clone git://github.com/sstephenson/ruby-build.git") return with ctx.cd("ruby-build"): run("git pull")