Pages classified as Ruby

Auto-Generate Jenkins Password Hash

Jenkins Password | Why Auto Generate? A Jenkins instance for every developer is DevOps best practice. Auto-generated passwords for every internal service instance eg Jenkins, MongoDb, Tomcat, ec2 servers is not only secure, it is simple – only external services should require long lived passwords. If you’ve forgotten your Jenkins password, the below steps will help you set another one

Read more

Ruby’s Native String Handlers

String Handling in Ruby If nothing else, Ruby is the bees knees at manipulating strings. Try and avoid regular expressions as they are hard to read – often you can avoid them and use one of Ruby’s many in-built string tools instead. UpperCase | LowerCase | Ruby’s Case Managers str.capitalize Return a copy of str capitalized # “string” => “String”

Read more