Sha256: edb31df06dafb8a8fe1cfb306265844da486994566bad7f39a5be062f74c22fc
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nugrant-2.1.4 | lib/nugrant.rb |