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/resource' | |
require 'chef/provider' | |
module Unity | |
module Resources | |
module UnityEditor | |
# A 'unity_editor' resource to install and uninstall Unity Editor. | |
class Resource < Chef::Resource::LWRPBase | |
self.resource_name = :unity_editor |
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
url = require('url') | |
querystring = require('querystring') | |
component_name = (organization_id, component_id, cb) -> | |
http.get"http://#{organization_id}.statuspage.io/index.json", (res) -> | |
payload = JSON.parse(res.body.payload) | |
for comp in payload.components | |
if comp.id == component_id | |
return cb(comp.name) |
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 is the template file | |
# | |
<Port <%= @port %> > | |
# bla bla bla | |
</Port> | |
# | |
# The problem is I get several files; port_80.conf port_8080.conf, ... port_8888.conf |
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
r = gem_package "amazon-ec2" do | |
version "0.9.17" | |
end | |
r.run_action(:install) | |
require 'rubygems' | |
Gem.clear_paths | |
require 'AWS' | |
ruby_block "register_with_elb" do |