Created
April 11, 2013 03:46
-
-
Save sawanoboly/5360579 to your computer and use it in GitHub Desktop.
Ohai Plugin for AWS OpsWorks
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
provides 'opsworks' | |
require 'mixlib/shellout' | |
require 'json' | |
unless opsworks | |
opsworks Mash.new | |
cmd = Mixlib::ShellOut.new("opsworks-agent-cli stack_state") | |
state = cmd.run_command | |
opsworks[:stack_state] = JSON.parse(state.stdout) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment