Skip to content

Instantly share code, notes, and snippets.

@jofi
Last active April 27, 2020 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jofi/f2ae27307b59bb6456dac036a17b356b to your computer and use it in GitHub Desktop.
Save jofi/f2ae27307b59bb6456dac036a17b356b to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
if __FILE__ == $PROGRAM_NAME
$:.unshift(File.expand_path('../lib', __FILE__))
#require 'something'
#some code...
#require 'pry'
#Pry.start
end
# run the file via ./script.rb
# or via bundle exec ./script.rb
# or via bundle exec ruby script.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment