Sha256: 49ac5a507317f1fa66d10324dbb58fb174d1037fb3863d2f37effb7cb2f98158
Contents?: true
Size: 700 Bytes
Versions: 94
Compression:
Stored size: 700 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' options = {} docs_path = OptionParser.new do |opts| opts.banner = "Usage: bundle exec initiate server --docs='/path/to/docs'" opts.on("-d", "--docs=DOCS", "Specify path to documentation") do |v| if Dir.exist?(v) ENV['DOCS_BASE_PATH'] = v puts "Documentation path: '#{v}' set successfully." else puts "Error: --docs parameter value must be equal to a directory containing documentation." exit end end opts.on("-h", "--help", "Prints help instructions") do puts opts exit end end.parse! APP_PATH = File.expand_path('../config/application', __dir__) require_relative '../config/boot' require 'rails/commands'
Version data entries
94 entries across 94 versions & 1 rubygems