grep for `resource` for examples. Basically you move the install method into the stage method for the resource.