Book description
Ruby has set the world on fire, proving itself a serious challenger to Perl and Python in all spheres. In particular, more and more people are discovering that Ruby's flexibility, superb feature set, and gentle learning curve make it a natural choice for system administration tasks, from the humblest server to the largest enterprise deployment.
Within the pages of Practical Ruby for System Administration, you'll learn the Ruby way to construct files, tap into clouds of data, build domain-specific languages, perform network traffic analysis, and more.
Based on author André Ben Hamou's own experiences working as a system administrator, this book will help you pick up practical tips on Ruby coding style, learn how to analyze and improve script performance, and make use of no-nonsense advice on scripting workflow, including testing and documentation.
Above all, you'll come to appreciate the sheer power of Ruby and the hundreds of benefits it offers for system administration.
This book places equal emphasis on fundamental Ruby concepts as well as practical how-tos.
It uses examples from other languages to ease the transition to Ruby.
The book is concise, entertaining, and informative—unlike many books aimed at system administrators, which can be overly long and stodgy.
Table of contents
- Copyright
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- 1. What Ruby Can Do for You
- 2. Common Tasks, Quick Solutions
- 3. A Practical Look at Performance
- 4. The Power of Metaprogramming
- 5. Building Files the Smart Way
- 6. Object Storage and Retrieval
- 7. Working with Enterprise Data
- 8. Networking for Fun and Profit
- 9. Network Monitoring
- 10. Extending Ruby: A Fistful of Gems
- 11. Testing and Documentation
- 12. The Future of Ruby
-
A. Ruby Execution
-
A.1. Command Line Options
- A.1.1. Octal Record Separator Specification: −0[octal]
- A.1.2. Auto Split Mode: -a
- A.1.3. Change Directory: -C path
- A.1.4. Check Syntax Only: -c
- A.1.5. Debug Mode: -d, --debug
- A.1.6. Execute Line: -e line
- A.1.7. Field Separator Specification: -F pattern
- A.1.8. Include from Additional Directory: -I path(s)
- A.1.9. In-place Editing: -i[extension]
- A.1.10. KCode Encoding Choice: -K encoding
- A.1.11. Line Ending Automated Handling: -l
- A.1.12. Nested Retrieval Loop: -n
- A.1.13. Printed Nested Retrieval Loop: -p
- A.1.14. Require Library: -r library
- A.1.15. Script Search: -S
- A.1.16. Smart Variables: -s
- A.1.17. Taint Level: -T[level]
- A.1.18. Verbose Mode: -v, --verbose
- A.1.19. Warnings Mode: -w
- A.1.20. Ignore Garbage: -x[path]
- A.2. Environment
-
A.1. Command Line Options
Product information
- Title: Practical Ruby for System Administration
- Author(s):
- Release date: June 2007
- Publisher(s): Apress
- ISBN: 9781590598214
You might also like
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
book
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …
book
The Well-Grounded Rubyist, Third Edition
In The Well-Grounded Rubyist, Third Edition expert authors David A. Black and Joseph Leo deliver Ruby …
book
Fundamentals of Software Architecture
Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …