Class: VagrantPlugins::Openstack::Command::Reset
- Inherits:
-
AbstractCommand
- Object
- AbstractCommand
- VagrantPlugins::Openstack::Command::Reset
- Defined in:
- lib/vagrant-openstack-illuin-provider/command/reset.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from AbstractCommand
#before_cmd, #execute, #initialize, #normalize_args
Constructor Details
This class inherits a constructor from VagrantPlugins::Openstack::Command::AbstractCommand
Class Method Details
.synopsis ⇒ Object
8 9 10 |
# File 'lib/vagrant-openstack-illuin-provider/command/reset.rb', line 8 def self.synopsis I18n.t('vagrant_openstack.command.reset') end |
Instance Method Details
#cmd(name, argv, env) ⇒ Object
12 13 14 15 16 |
# File 'lib/vagrant-openstack-illuin-provider/command/reset.rb', line 12 def cmd(name, argv, env) fail Errors::NoArgRequiredForCommand, cmd: name unless argv.size == 0 FileUtils.remove_dir("#{env[:machine].data_dir}") env[:ui].info 'Vagrant OpenStack Provider has been reset' end |