Last active
August 29, 2015 14:00
-
-
Save kn0/11129288 to your computer and use it in GitHub Desktop.
Example Gemfile.local file for Metasploit Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Example Gemfile.local file for Metasploit Framework | |
# | |
# This is intended to be used with Metasploit: http//metasploit.com/download | |
# Current source: https://github.com/rapid7/metasploit-framework | |
# | |
# | |
# The Gemfile.local file provides a way to use other gems that are not | |
# included in the standard Gemfile provided with Metasploit. | |
# This filename is included in Metasploit's .gitignore file, so local changes | |
# to this file will not accidentally show up in future pull requests. This | |
# example Gemfile.local includes all gems in Gemfile using instance_eval. | |
# It also creates a new bundle group, 'local', to hold additional gems. | |
# | |
# This file will not be used by default within the framework. As such, one | |
# must first install the custom Gemfile.local with bundle: | |
# bundle install --gemfile Gemfile.local | |
# | |
# Note that msfupdate does not consider Gemfile.local when updating the | |
# framework. If it is used, it may be necessary to run the above bundle | |
# command after the update. | |
# | |
### | |
# Include the Gemfile included with the framework | |
msf_gemfile = File.join(File.dirname(__FILE__), 'Gemfile') | |
if File.readable?(msf_gemfile) | |
instance_eval(File.read(msf_gemfile)) | |
end | |
# Create a custom group | |
group :local do | |
# Use pry to help view and interact with objects in the framework | |
gem 'pry', '~> 0.9' | |
# Use pry-debugger to step through code during development | |
gem 'pry-debugger', '~> 0.2' | |
# Add the lab gem so that the 'lab' plugin will work again | |
gem 'lab', '~> 0.2.7' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment