# === Synopsis: # RightScale Ohai Runner - Copyright (c) 2013 by RightScale Inc # # runs Ohai in the RightScale environment # # === Examples: # # === Usage: # rs_ohai [ohai node name] # require 'rubygems' require 'right_agent' require 'right_agent/scripts/usage' require File.join(File.dirname(__FILE__), '..', 'lib', 'chef', 'ohai_setup') require 'ohai/application' if RightScale::Platform.windows? require 'ruby-wmi' end module RightScale class OhaiRunner # Activates RightScale environment before running ohai # # === Return # true:: Always return true def run RightScale::OhaiSetup.configure_ohai Ohai::Application.new.run true end end end