Created
December 5, 2011 21:22
-
-
Save johntdyer/1435411 to your computer and use it in GitHub Desktop.
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
| module Rayo | |
| %w(json yaml optparse fileutils awesome_print fog rainbow logger spice ostruct erubis terminal-table/import).each{|lib| require lib} | |
| Dir[File.dirname(__FILE__) + "/lib/*.rb"].each{|file| require file } | |
| CONFIG = Rayo::Config.new(File.open("config.yml") { |file| YAML.load(file) }) | |
| include Aws | |
| Spice.setup do |s| | |
| s.server_url = CONFIG.chef.server | |
| s.client_name = CONFIG.chef.api_key_name | |
| s.raw_key = CONFIG.chef.api_key | |
| end | |
| Spice.connect! | |
| end | |
| include Rayo | |
| #p Rayo::CONFIG | |
| a = Rayo::Aws::create_server({ | |
| :hostname=>'dyer', | |
| :domain=>'test.rayo.voxeolabs.net', | |
| :tags=>{:hostname=>'dyer',:fqdn=>'dyer.test.rayo.voxeolabs.net',:role=>'awesome'} | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment