Practical Ruby for System Administration by André Ben Hamou

By André Ben Hamou

Ruby has set the realm on hearth, proving itself a major challenger to Perl and Python in all spheres. particularly, increasingly more everyone is researching that Rubys flexibility, wonderful characteristic set, and delicate studying curve make it a ordinary selection for approach management initiatives, from the humblest server to the most important firm deployment.

Within the pages of Practical Ruby for process Administration, youll examine the Ruby strategy to build documents, faucet into clouds of knowledge, construct domain-specific languages, practice community site visitors research, and more.

Based on writer Andr� Ben Hamous personal reviews operating as a approach administrator, this e-book can help you decide up functional pointers on Ruby coding variety, how one can study and increase script functionality, and utilize no-nonsense recommendation on scripting workflow, together with trying out and documentation.

Above all, youll come to understand the sheer strength of Ruby and the loads of advantages it bargains for approach administration.
* This ebook locations equivalent emphasis on basic Ruby options in addition to useful how-tos.
* It makes use of examples from different languages to ease the transition to Ruby.
* The publication is concise, wonderful, and informativeunlike many books aimed toward approach directors, which are overly lengthy and stodgy.

Show description

Read or Download Practical Ruby for System Administration PDF

Best system administration books

Java Performance and Scalability: Server-Side Programming Techniques

This publication used to be written with one objective in brain: to supply Java programmers with the services had to construct effective, scalable Java code. the writer stocks his event in server-side functionality tuning via measured functionality tests, referred to as optimizations. each one optimization discusses suggestions to enhance the functionality and scalability of your code.

Deploying Microsoft Forefront Protection 2010 for Exchange Server (It Professional Series)

Get concentrated, real-world suggestions for making plans and enforcing leading edge defense for trade Server--and support shield company electronic mail from viruses, junk mail, phishing, and coverage violations. Guided through key participants of the Microsoft vanguard staff, you will delve into process parts, positive aspects, and services, and step via crucial making plans and layout issues.

Extra resources for Practical Ruby for System Administration

Example text

Benchmark provides a method that allows you to analyze performance in batches as shown in Listing 3-2. Listing 3-2. to_i } } end The wrapper method (bm) supplies a reporting object (b) to its block, which can be invoked with report and a label for each individual test. Note the 10 passed to bm, which is simply an indication to the pretty-printer as to how much column space it should allow for each label. fm Page 29 Tuesday, May 22, 2007 6:03 AM CH APT ER 3 ■ A PRA CT IC AL LO O K A T PE RFO RMA NCE To go one step further, it’s important to consider how closely you can approach controlled conditions while testing.

Orders of magnitude more performance had been achieved by changing the execution style of the program from executing thousands of blazingly fast binaries to one moderately fast script. fm Page 27 Tuesday, May 22, 2007 6:03 AM CH APT ER 3 ■ A PRA CT IC AL LO O K A T PE RFO RMA NCE ■Note As an aside, I was able to modify the script in Listing 3-1 trivially to delete (truncate) the resource forks it found when supplied with a particular command line argument. The ability to make this sort of modification is, of course, exactly the sort of motivation we have for rolling our own scripts in the first place.

Rb. 6. Start writing the actual script. fm Page 21 Tuesday, May 22, 2007 6:02 AM CHAPTER 2 ■ COMM ON TA SK S, QUICK SOLUTIONS What became painfully obvious was that only step 6 should involve any real work, and yet I was losing time and flow going through this whole procedure for every new script. It is a credit to my dim-wittedness that it took me a few weeks to ask myself whether Ruby might solve this problem for me. The solution was to treat the first five steps as a single “black box” action.

Download PDF sample

Rated 4.87 of 5 – based on 7 votes