Sha256: b13b43bd04031a49f56dc95c58a527e612a408a767075fb09ec3af9471d5d78b
Contents?: true
Size: 666 Bytes
Versions: 18
Compression:
Stored size: 666 Bytes
Contents
#!/usr/bin/env ruby ### Bundler ## require 'bundler/setup' require 'coderay' require 'pry' ENV["APP_ENV"] ||= "development" Bundler.require(ENV['APP_ENV'].downcase.gsub(" ","_").to_sym) require 'dotenv' Dotenv.load APP_ROOT=File.expand_path(File.dirname(__FILE__)) + "/.." require File.join(APP_ROOT,'/lib/vault-tools.rb') # add ability to reload console def reload! reload_msg = '# Reloading the console...' puts CodeRay.scan(reload_msg, :ruby).term Pry.save_history exec(File.expand_path(__FILE__), 'bin/console') end system('clear') welcome = <<eos # Welcome to Vault Tools Interactive Console eos puts CodeRay.scan(welcome, :ruby).term Pry.start
Version data entries
18 entries across 18 versions & 1 rubygems