Skip to content

Instantly share code, notes, and snippets.

@limhoff-r7
Created September 12, 2014 14:56
Show Gist options
  • Save limhoff-r7/26cff2864a455defb08f to your computer and use it in GitHub Desktop.
Save limhoff-r7/26cff2864a455defb08f to your computer and use it in GitHub Desktop.
Adding metasploit-yard to gem Rakfile
# Use find_all_by_name instead of find_by_name as find_all_by_name will return pre-release versions
gem_specification = Gem::Specification.find_all_by_name('metasploit-yard').first
Dir[File.join(gem_specification.gem_dir, 'lib', 'tasks', '**', '*.rake')].each do |rake|
load rake
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment