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
check_version()
click to toggle source
rubocop:disable Lint/HandleExceptions
# 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
cinder()
click to toggle source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 51 def self.cinder Openstack::CinderClient.instance end
glance()
click to toggle source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 55 def self.glance Openstack::GlanceClient.instance end
heat()
click to toggle source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 43 def self.heat Openstack::HeatClient.instance end
init_i18n()
click to toggle source
This initializes the i18n load path so that the plugin-specific translations work.
# 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
init_logging()
click to toggle source
# File lib/vagrant-openstack-provider.rb, line 18 def self.init_logging Logging.init end
keystone()
click to toggle source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 35 def self.keystone Openstack::KeystoneClient.instance end
neutron()
click to toggle source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 47 def self.neutron Openstack::NeutronClient.instance end
nova()
click to toggle source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 39 def self.nova Openstack::NovaClient.instance end
session()
click to toggle source
# File lib/vagrant-openstack-provider/client/openstack.rb, line 31 def self.session Session.instance end
source_root()
click to toggle source
This returns the path to the source of this plugin.
@return [Pathname]
# File lib/vagrant-openstack-provider.rb, line 25 def self.source_root @source_root ||= Pathname.new(File.expand_path('../../', __FILE__)) end