Skip to content

Instantly share code, notes, and snippets.

@Aphellirus
Created August 25, 2021 07:12
Show Gist options
  • Save Aphellirus/91b9f902ed15de1803580ed919fccf07 to your computer and use it in GitHub Desktop.
Save Aphellirus/91b9f902ed15de1803580ed919fccf07 to your computer and use it in GitHub Desktop.
bundler/inline for automation in Ruby
=begin
With bundler/inline there is no need to use external gems
it lets you download/install/activate gems directly in the script
skipping the need to handle bundle install or call it through bundle exec
=end
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'hashie', '3.6'
# etc
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment