Skip to content

Instantly share code, notes, and snippets.

@ringods
Created August 16, 2010 16:00
Show Gist options
  • Save ringods/527184 to your computer and use it in GitHub Desktop.
Save ringods/527184 to your computer and use it in GitHub Desktop.
require 'chef/resource/script'
require 'chef/provider/script'
require 'chef/platform'
class Chef
class Resource
class PylabsQshell < Chef::Resource::Script
def initialize(name, run_context=nil)
super
@resource_name = :pylabs_qshell
@interpreter = "/opt/qbase3/qshell -f"
end
end
end
end
Chef::Platform::platforms[:default][:pylabs_qshell] = Chef::Provider::Script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment