Skip to content

Instantly share code, notes, and snippets.

@rlister
Forked from ssimeonov/bluepill_override.rb
Created June 26, 2013 03:21
Show Gist options
  • Save rlister/5864522 to your computer and use it in GitHub Desktop.
Save rlister/5864522 to your computer and use it in GitHub Desktop.
class BluepillOverride
def self.provider
Class.new(Chef::Provider::BluepillService) do
def shell_out!(*args)
args.each do |command|
rvm_shell "#{command}" do
code command
end
end
end
end
end
end
bluepill_service 'my-service' do
provider BluepillOverride.provider
action [:enable, :load, :start]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment