module VagrantPlugins::Openstack
Constants
- VERSION
-
Stable versions must respect the pattern given by
VagrantPlugins::Openstack::VERSION_PATTERN
- VERSION_PATTERN
-
Stable version must respect the naming convention ‘x.y.z’ where x, y and z are integers inside the range [0, 999]
Public Class Methods
Source
# File lib/vagrant-openstack-provider/version_checker.rb, line 85 def self.check_version Timeout.timeout(3, Errors::Timeout) do VersionChecker.instance.check end rescue # Do nothing whatever the failure cause end
rubocop:disable Lint/HandleExceptions
Source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 51 def self.cinder Openstack::CinderClient.instance end
Source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 55 def self.glance Openstack::GlanceClient.instance end
Source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 43 def self.heat Openstack::HeatClient.instance end
Source
# File lib/vagrant-openstack-provider.rb, line 13 def self.init_i18n I18n.load_path << File.expand_path('locales/en.yml', source_root) I18n.reload! end
This initializes the i18n load path so that the plugin-specific translations work.
Source
# File lib/vagrant-openstack-provider.rb, line 18 def self.init_logging Logging.init end
Source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 35 def self.keystone Openstack::KeystoneClient.instance end
Source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 47 def self.neutron Openstack::NeutronClient.instance end
Source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 39 def self.nova Openstack::NovaClient.instance end
Source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 31 def self.session Session.instance end
Source
# File lib/vagrant-openstack-provider.rb, line 25 def self.source_root @source_root ||= Pathname.new(File.expand_path('../../', __FILE__)) end
This returns the path to the source of this plugin.
@return [Pathname]