<s> '''<STR_LIT>''' <EOL> from provy . more . base . database . postgresql import BasePostgreSQLRole <EOL> from provy . more . debian . package . aptitude import AptitudeRole <EOL> class PostgreSQLRole ( BasePostgreSQLRole ) : <EOL> '''<STR_LIT>''' <EOL> def provision ( self ) : <EOL> '''<STR_LIT>''' <EOL> with self . using ( AptitudeRole ) as role : <EOL> role . ensure_package_installed ( '<STR_LIT>' ) <EOL> role . ensure_package_installed ( '<STR_LIT>' % self . __get_version ( ) ) <EOL> def __get_version ( self ) : <EOL> distro = self . get_distro_info ( ) <EOL> if distro . distributor_id . lower ( ) == '<STR_LIT>' : <EOL> version = '<STR_LIT>' <EOL> else : <EOL> version = '<STR_LIT>' <EOL> return version </s>
