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

Version Path
station-0.5.16 lib/nexmo_developer/bin/initiate
station-0.5.15 lib/nexmo_developer/bin/initiate
station-0.5.14 lib/nexmo_developer/bin/initiate
station-0.5.13 lib/nexmo_developer/bin/initiate
station-0.5.12 lib/nexmo_developer/bin/initiate
station-0.5.11 lib/nexmo_developer/bin/initiate
station-0.5.10 lib/nexmo_developer/bin/initiate
station-0.5.9 lib/nexmo_developer/bin/initiate
station-0.5.8 lib/nexmo_developer/bin/initiate
station-0.5.7 lib/nexmo_developer/bin/initiate
station-0.5.6 lib/nexmo_developer/bin/initiate
station-0.5.5 lib/nexmo_developer/bin/initiate
station-0.5.4 lib/nexmo_developer/bin/initiate
station-0.5.3 lib/nexmo_developer/bin/initiate
station-0.5.2 lib/nexmo_developer/bin/initiate
station-0.5.1 lib/nexmo_developer/bin/initiate
station-0.5.0 lib/nexmo_developer/bin/initiate
station-0.4.9 lib/nexmo_developer/bin/initiate
station-0.4.8 lib/nexmo_developer/bin/initiate
station-0.4.7 lib/nexmo_developer/bin/initiate