Sha256: 45abfae6fc107b19e5715f46cb40f2eebe391ce56699f9fde1c3f96ae04f59d7

Contents?: true

Size: 676 Bytes

Versions: 10

Compression:

Stored size: 676 Bytes

Contents

require 'pathname'
require 'nugrant/config'
require 'nugrant/parameters'

# 1.8 Compatibility check
unless defined?(KeyError)
  class KeyError < IndexError
  end
end

module Nugrant
  def self.setup_i18n()
    I18n.load_path << File.expand_path("locales/en.yml", Nugrant.source_root)
    I18n.reload!
  end

  def self.source_root
    @source_root ||= Pathname.new(File.expand_path("../../", __FILE__))
  end
end

if defined?(Vagrant)
  Nugrant.setup_i18n()

  case
  when defined?(Vagrant::Plugin::V2)
    require 'nugrant/vagrant/v2/plugin'
  else
    raise RuntimeError, "Vagrant [#{Vagrant::VERSION}] is not supported by Nugrant."
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
nugrant-2.1.3 lib/nugrant.rb
nugrant-2.1.2 lib/nugrant.rb
nugrant-2.1.1 lib/nugrant.rb
nugrant-2.1.0 lib/nugrant.rb
nugrant-2.0.2 lib/nugrant.rb
nugrant-2.0.1 lib/nugrant.rb
nugrant-2.0.0 lib/nugrant.rb
nugrant-2.0.0.rc1 lib/nugrant.rb
nugrant-2.0.0.pre2 lib/nugrant.rb
nugrant-2.0.0.pre1 lib/nugrant.rb