Tag Archives: Ruby

Lets Understand the Ruby programming world in 5 mins!!!

Lets Understand the Ruby programming world in 5 mins? Ruby Ruby is a dynamic, interpreted, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro “Matz” Matsumoto in Japan. The Currnet most latest stable release is Ruby 2.5. Gem – A Ruby Package A Gem is a Ruby application package… Read More »

A simple Ruby method to send email

scmuser created the topic: A simple Ruby method to send email A simple Ruby method to send email send_email “admnistrator@example.com”, :body => “This was easy to send” Source – jerodsanto.net/2009/02/a-simple-ruby-method-to-send-email/

What is the way to iterate through an array in Ruby?

scmuser created the topic: What is the way to iterate through an array in Ruby? What is the way to iterate through an array in Ruby? This will iterate through all the elements: This will iterate through all the elements giving you the value and the index: Source – stackoverflow.com/questions/310634/what-…ugh-an-array-in-ruby

Common ways to read a file in Ruby?

scmuser created the topic: Common ways to read a file in Ruby? It is also possible to explicitly close file after as above (pass a block to open closes it for you): Source – stackoverflow.com/questions/5545068/what…-read-a-file-in-ruby

Any Possible Software/Plugin FoR SCM Workflow

pankaj2252369@gmail.com created the topic: Any possible Software/plugin for SCM workflow? Hey Team, Thanks for lot of information on the site. wonderful work. Any idea on SCM workflow software/framework ? which would help me to complete the SDLC lifecycle. For E.g: When ever developers are done with their changes/check-ins, they would request CM team to build… Read More »

Top 10 Scripting Languages in DevOps | List of Best Scripting Languages

This is the time of DevOps in software industry and DevOps uses different different languages for deployment automation and for software development. This is the reason if you are a DevOps professional and want to be succeed in DevOps role than command on scripting languages is must. But, one can not be a master of… Read More »

A script to find all users who have not set passwords

Write a script to find all users who have not set passwords. #!/usr/bin/ruby require “P4” p4 = P4.new p4.parse_forms p4.connect p4.run_users.each do |u| user = p4.fetch_user( u[ “User” ] ) puts( user[ “User” ] ) unless user.has_key?( “Password” ) end #!/ OR #!/usr/bin/perl use P4; my $p4 = new P4; $p4->ParseForms(); $p4->Init() or die( “Can’t… Read More »