This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This simlpe snippet explains how to swap the repository of all the cookbooks under | |
# a RightScale ServerTemplate | |
require 'right_api_client' | |
# Initialize the client with correct options. | |
client = RightApi::Client.new(options) | |
# Obtain the servertemplate resource where you want to swap the respository | |
st = client.server_templates.index(id: 123456) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'chef/mixin/shell_out' | |
require 'chef/platform' | |
require 'chef' | |
include Chef::Mixin::ShellOut | |
class Chef | |
class Provider | |
class Package | |
class Pkgng < Chef::Provider::Package |