Sha256: 53eb70d8592069b6602850ee172c5e6fc9c650eb840ce126e5542902e11b922d

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

module Veewee
  module Provider
    module Parallels
      module BoxCommand

        def destroy(options={})
          unless self.exists?
            ui.error "Error:: You tried to destroy a non-existing box '#{name}'"
            exit -1
          end

          if self.running?
            self.poweroff
            sleep 2
          end

          command="prlctl delete '#{self.name}'"
          shell_exec("#{command}")

        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
veewee-0.3.0.alpha8 lib/veewee/provider/parallels/box/destroy.rb
veewee-0.3.0.alpha7 lib/veewee/provider/parallels/box/destroy.rb