Skip to content

Instantly share code, notes, and snippets.

@hone
Created April 20, 2011 02:57
Show Gist options
  • Save hone/930252 to your computer and use it in GitHub Desktop.
Save hone/930252 to your computer and use it in GitHub Desktop.
commands:
plugins:enable <gem name> # would not install, just enable in config
plugins:disable <gem name> # disables gem from config, but does not uninstall the gem
plugins:install <gem name> # install and enable the gem
plugins:uninstall <gem name> # uninstall and remove from the config
module HerokuConfig
extend Heroku::Helpers
def self.config_file
"#{home_directory}/.herogems.yml"
end
end
YAML.load_file(HerokuConfig.config_file).each do |gem|
begin
require gem.gsub!('-', '/')
rescue LoadError
$stderr.puts "Can not load: #{gem}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment