Sha256: 14c97f34ea365adbc47e86d4eda0011cbbe139f3e8060ca174e12b7c39a52a31

Contents?: true

Size: 846 Bytes

Versions: 2

Compression:

Stored size: 846 Bytes

Contents

#!/usr/bin/env ruby

##
# Provides a IRB session with a NcsNavigator::Mdes::Specification instance
# for free-form prodding.

# Allow this executable to be run directly from the source as well as
# from an installed gem.
begin
  lib = File.expand_path('../../lib', __FILE__)
  unless $LOAD_PATH.include?(lib)
    $LOAD_PATH << lib
    require 'rubygems'
  end
end

require 'irb'
require 'ncs_navigator/mdes'

$mdes12 = NcsNavigator::Mdes::Specification.new('1.2')
$mdes20 = NcsNavigator::Mdes::Specification.new('2.0')

expected_loc = ENV[NcsNavigator::Mdes::SourceDocuments::BASE_ENV_VAR] ?
  ENV[NcsNavigator::Mdes::SourceDocuments::BASE_ENV_VAR].inspect :
  'the default location'

puts "Documents are expected to be in #{expected_loc}."
puts "$mdes12 is a Specification for 1.2"
puts "$mdes20 is a Specification for 2.0"

IRB.start(__FILE__)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ncs_mdes-0.5.0 bin/mdes-console
ncs_mdes-0.4.2 bin/mdes-console