Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (36 sloc) 1.029 kb

Just Enough Ruby For Chef

.notes These course materials are Copyright © 2010-2012 Opscode, Inc. All rights reserved. This work is licensed under a Creative Commons Attribute Share Alike 3.0 United States License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/us; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.

Objectives

  • Learn where Ruby is installed
  • Understand basic Ruby data types
  • Understand some of the common Ruby objects used in Chef
  • Familiarity with the ways Chef uses Ruby for DSLs

What is Ruby?

Ruby is Object Oriented

Where is Ruby Installed?

How does Chef Use Ruby?

  • Domain Specific Languages
  • Recipes
  • Roles
  • Metadata
  • Plugins

Ruby Data Types

  • Strings
  • Numbers
  • Arrays
  • Hashes
  • Symbols

Strings

Numbers

Arrays

Hashes

Symbols

Enumerable

True, False and Nil

Conditionals

If/Else and Unless

Case

Summary

Lab Exercise

Just Enough Ruby For Chef

Jump to Line
Something went wrong with that request. Please try again.