Sha256: 224b75cdc4501bcba83a82a4d0257f95990404bf0173604a72770b6012595628

Contents?: true

Size: 765 Bytes

Versions: 12

Compression:

Stored size: 765 Bytes

Contents

require 'pathname'

require 'vagrant-openstack-provider/plugin'
require 'vagrant-openstack-provider/logging'

module VagrantPlugins
  module Openstack
    lib_path = Pathname.new(File.expand_path('../vagrant-openstack-provider', __FILE__))
    autoload :Errors, lib_path.join('errors')

    # This initializes the i18n load path so that the plugin-specific
    # translations work.
    def self.init_i18n
      I18n.load_path << File.expand_path('locales/en.yml', source_root)
      I18n.reload!
    end

    def self.init_logging
      Logging.init
    end

    # This returns the path to the source of this plugin.
    #
    # @return [Pathname]
    def self.source_root
      @source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
vagrant-openstack-provider-0.13.0 lib/vagrant-openstack-provider.rb
vagrant-openstack-provider-0.12.0 lib/vagrant-openstack-provider.rb
vagrant-openstack-provider-illuin-0.11.1 lib/vagrant-openstack-provider.rb
vagrant-openstack-provider-0.11.0 lib/vagrant-openstack-provider.rb
vagrant-openstack-provider-0.10.0 lib/vagrant-openstack-provider.rb
vagrant-openstack-provider-0.9.0 lib/vagrant-openstack-provider.rb
vagrant-openstack-provider-0.8.0 lib/vagrant-openstack-provider.rb
vagrant-openstack-provider-0.7.2 lib/vagrant-openstack-provider.rb
vagrant-openstack-provider-0.7.1 lib/vagrant-openstack-provider.rb
vagrant-openstack-provider-0.7.0 lib/vagrant-openstack-provider.rb
vagrant-openstack-provider-0.6.1 lib/vagrant-openstack-provider.rb
vagrant-openstack-provider-0.6.0 lib/vagrant-openstack-provider.rb