Module: VagrantPlugins::Scaleway
- Defined in:
- lib/vagrant-scaleway.rb,
lib/vagrant-scaleway/action.rb,
lib/vagrant-scaleway/config.rb,
lib/vagrant-scaleway/errors.rb,
lib/vagrant-scaleway/plugin.rb,
lib/vagrant-scaleway/version.rb,
lib/vagrant-scaleway/provider.rb,
lib/vagrant-scaleway/util/timer.rb,
lib/vagrant-scaleway/command/root.rb,
lib/vagrant-scaleway/command/images.rb,
lib/vagrant-scaleway/action/is_created.rb,
lib/vagrant-scaleway/action/is_stopped.rb,
lib/vagrant-scaleway/action/read_state.rb,
lib/vagrant-scaleway/action/list_images.rb,
lib/vagrant-scaleway/action/stop_server.rb,
lib/vagrant-scaleway/action/start_server.rb,
lib/vagrant-scaleway/command/bootscripts.rb,
lib/vagrant-scaleway/action/create_server.rb,
lib/vagrant-scaleway/action/read_ssh_info.rb,
lib/vagrant-scaleway/action/warn_networks.rb,
lib/vagrant-scaleway/action/destroy_server.rb,
lib/vagrant-scaleway/action/connect_scaleway.rb,
lib/vagrant-scaleway/action/list_bootscripts.rb,
lib/vagrant-scaleway/command/security_groups.rb,
lib/vagrant-scaleway/action/message_not_created.rb,
lib/vagrant-scaleway/action/list_security_groups.rb,
lib/vagrant-scaleway/action/message_already_created.rb,
lib/vagrant-scaleway/action/message_will_not_destroy.rb
Defined Under Namespace
Modules: Action, Command, Errors, Util Classes: Config, Plugin, Provider
Constant Summary collapse
- VERSION =
'0.3.1'.freeze
Class Method Summary collapse
-
.source_root ⇒ Pathname
This returns the path to the source of this plugin.
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Pathname
This returns the path to the source of this plugin.
14 15 16 |
# File 'lib/vagrant-scaleway.rb', line 14 def self.source_root @source_root ||= Pathname.new(File.('../../', __FILE__)) end |
Instance Method Details
#validate(_machine) ⇒ Object
112 113 114 115 116 117 118 119 |
# File 'lib/vagrant-scaleway/config.rb', line 112 def validate(_machine) errors = _detected_errors errors << I18n.t('vagrant_scaleway.config.organization_required') if @organization.nil? errors << I18n.t('vagrant_scaleway.config.token_required') if @token.nil? { 'Scaleway Provider' => errors } end |