Sha256: 1556d83c99e4f58130637f400af8e6420819868d0b7f62cf924a7d671950f53b

Contents?: true

Size: 544 Bytes

Versions: 11

Compression:

Stored size: 544 Bytes

Contents

require 'vagrant-conoha/command/utils'
require 'vagrant-conoha/command/abstract_command'

module VagrantPlugins
  module ConoHa
    module Command
      class Reset < AbstractCommand
        def self.synopsis
          I18n.t('vagrant_openstack.command.reset')
        end

        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 ConoHa has been reset.'
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vagrant-conoha-0.1.10 lib/vagrant-conoha/command/reset.rb
vagrant-conoha-0.1.9 lib/vagrant-conoha/command/reset.rb
vagrant-conoha-0.1.8 lib/vagrant-conoha/command/reset.rb
vagrant-conoha-0.1.7 lib/vagrant-conoha/command/reset.rb
vagrant-conoha-0.1.6 lib/vagrant-conoha/command/reset.rb
vagrant-conoha-0.1.5 lib/vagrant-conoha/command/reset.rb
vagrant-conoha-0.1.4 lib/vagrant-conoha/command/reset.rb
vagrant-conoha-0.1.3 lib/vagrant-conoha/command/reset.rb
vagrant-conoha-0.1.2 lib/vagrant-conoha/command/reset.rb
vagrant-conoha-0.1.1 lib/vagrant-conoha/command/reset.rb
vagrant-conoha-0.1.0 lib/vagrant-conoha/command/reset.rb