#NEWLINE# def provision( self ) : #NEWLINE# #INDENT# "\n        Installs gem dependencies. This method should be called upon if overriden in base classes, or gem won't work properly in the remote server.\n\n        Example:\n        ::\n\n            from provy.core import Role\n            from provy.more.debian import PipRole\n\n            class MySampleRole(Role):\n                def provision(self):\n                    self.provision_role(PipRole) # does not need to be called if using with block.\n        " #NEWLINE# from provy.more.debian.programming.ruby import RubyRole #NEWLINE# self . provision_role ( RubyRole ) #NEWLINE# update_alternatives_command = UPDATE_ALTERNATIVES_COMMAND . format ( version = RubyRole . version , priority = RubyRole . priority ) #NEWLINE# completion_command = 'ln - sf /etc/bash_completion.d/gem{version} /etc/alternatives/bash_completion_gem' . format ( version = RubyRole . version ) #NEWLINE# self . execute ( update_alternatives_command , sudo = True ) #NEWLINE# self . execute ( update_alternatives_command , sudo = True )