Module: VagrantPlugins::Openstack
- Defined in:
- lib/vagrant-openstack-provider.rb,
lib/vagrant-openstack-provider/utils.rb,
lib/vagrant-openstack-provider/action.rb,
lib/vagrant-openstack-provider/config.rb,
lib/vagrant-openstack-provider/errors.rb,
lib/vagrant-openstack-provider/plugin.rb,
lib/vagrant-openstack-provider/logging.rb,
lib/vagrant-openstack-provider/version.rb,
lib/vagrant-openstack-provider/provider.rb,
lib/vagrant-openstack-provider/client/heat.rb,
lib/vagrant-openstack-provider/client/nova.rb,
lib/vagrant-openstack-provider/config/http.rb,
lib/vagrant-openstack-provider/command/main.rb,
lib/vagrant-openstack-provider/action/resume.rb,
lib/vagrant-openstack-provider/client/cinder.rb,
lib/vagrant-openstack-provider/client/domain.rb,
lib/vagrant-openstack-provider/client/glance.rb,
lib/vagrant-openstack-provider/command/reset.rb,
lib/vagrant-openstack-provider/command/utils.rb,
lib/vagrant-openstack-provider/action/message.rb,
lib/vagrant-openstack-provider/action/suspend.rb,
lib/vagrant-openstack-provider/client/neutron.rb,
lib/vagrant-openstack-provider/client/keystone.rb,
lib/vagrant-openstack-provider/config_resolver.rb,
lib/vagrant-openstack-provider/version_checker.rb,
lib/vagrant-openstack-provider/action/provision.rb,
lib/vagrant-openstack-provider/action/wait_stop.rb,
lib/vagrant-openstack-provider/client/openstack.rb,
lib/vagrant-openstack-provider/action/read_state.rb,
lib/vagrant-openstack-provider/cap/snapshot_list.rb,
lib/vagrant-openstack-provider/client/http_utils.rb,
lib/vagrant-openstack-provider/client/rest_utils.rb,
lib/vagrant-openstack-provider/action/stop_server.rb,
lib/vagrant-openstack-provider/action/wait_active.rb,
lib/vagrant-openstack-provider/command/image_list.rb,
lib/vagrant-openstack-provider/action/create_stack.rb,
lib/vagrant-openstack-provider/action/delete_stack.rb,
lib/vagrant-openstack-provider/action/start_server.rb,
lib/vagrant-openstack-provider/action/sync_folders.rb,
lib/vagrant-openstack-provider/command/flavor_list.rb,
lib/vagrant-openstack-provider/command/subnet_list.rb,
lib/vagrant-openstack-provider/command/volume_list.rb,
lib/vagrant-openstack-provider/action/create_server.rb,
lib/vagrant-openstack-provider/action/delete_server.rb,
lib/vagrant-openstack-provider/action/read_ssh_info.rb,
lib/vagrant-openstack-provider/action/snapshot_list.rb,
lib/vagrant-openstack-provider/action/snapshot_save.rb,
lib/vagrant-openstack-provider/command/network_list.rb,
lib/vagrant-openstack-provider/client/request_logger.rb,
lib/vagrant-openstack-provider/action/abstract_action.rb,
lib/vagrant-openstack-provider/action/snapshot_delete.rb,
lib/vagrant-openstack-provider/action/snapshot_cleanup.rb,
lib/vagrant-openstack-provider/action/snapshot_restore.rb,
lib/vagrant-openstack-provider/command/floatingip_list.rb,
lib/vagrant-openstack-provider/action/connect_openstack.rb,
lib/vagrant-openstack-provider/command/abstract_command.rb,
lib/vagrant-openstack-provider/catalog/openstack_catalog.rb,
lib/vagrant-openstack-provider/command/openstack_command.rb
Defined Under Namespace
Modules: Action, Cap, Catalog, Command, Domain, Errors, HttpUtils, Logging, RestUtils
Classes: CinderClient, Config, ConfigResolver, GlanceClient, HeatClient, HttpConfig, KeystoneClient, NeutronClient, NovaClient, Plugin, Provider, Session, Utils, VersionChecker
Constant Summary
collapse
- VERSION =
Stable versions must respect the pattern given by VagrantPlugins::Openstack::VERSION_PATTERN
'0.11.1'
- VERSION_PATTERN =
Stable version must respect the naming convention ‘x.y.z’ where x, y and z are integers inside the range [0, 999]
/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/
Class Method Summary
collapse
Class Method Details
.check_version ⇒ Object
rubocop:disable Lint/HandleExceptions
67
68
69
70
71
72
73
|
# File 'lib/vagrant-openstack-provider/version_checker.rb', line 67
def self.check_version
Timeout.timeout(3, Errors::Timeout) do
VersionChecker.instance.check
end
rescue
end
|
.cinder ⇒ Object
51
52
53
|
# File 'lib/vagrant-openstack-provider/client/openstack.rb', line 51
def self.cinder
Openstack::CinderClient.instance
end
|
.glance ⇒ Object
55
56
57
|
# File 'lib/vagrant-openstack-provider/client/openstack.rb', line 55
def self.glance
Openstack::GlanceClient.instance
end
|
.heat ⇒ Object
43
44
45
|
# File 'lib/vagrant-openstack-provider/client/openstack.rb', line 43
def self.heat
Openstack::HeatClient.instance
end
|
.init_i18n ⇒ Object
This initializes the i18n load path so that the plugin-specific translations work.
13
14
15
16
|
# 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 ⇒ Object
18
19
20
|
# File 'lib/vagrant-openstack-provider.rb', line 18
def self.init_logging
Logging.init
end
|
.keystone ⇒ Object
35
36
37
|
# File 'lib/vagrant-openstack-provider/client/openstack.rb', line 35
def self.keystone
Openstack::KeystoneClient.instance
end
|
.neutron ⇒ Object
47
48
49
|
# File 'lib/vagrant-openstack-provider/client/openstack.rb', line 47
def self.neutron
Openstack::NeutronClient.instance
end
|
.nova ⇒ Object
39
40
41
|
# File 'lib/vagrant-openstack-provider/client/openstack.rb', line 39
def self.nova
Openstack::NovaClient.instance
end
|
.session ⇒ Object
31
32
33
|
# File 'lib/vagrant-openstack-provider/client/openstack.rb', line 31
def self.session
Session.instance
end
|
.source_root ⇒ Pathname
This returns the path to the source of this plugin.
25
26
27
|
# File 'lib/vagrant-openstack-provider.rb', line 25
def self.source_root
@source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
end
|