Sha256: ec66ca48b049a309eb9043eeca36b60feff61020e275b26dc6ed1aceb54f8bab

Contents?: true

Size: 423 Bytes

Versions: 26

Compression:

Stored size: 423 Bytes

Contents

module Veewee
  module Provider
    module Vmfusion
      module BoxCommand

        def destroy(options={})
          unless raw.exists?
            raise Veewee::Error, "Error:: You tried to destroy a non-existing box '#{name}'"
          end

          raw.halt if raw.state=="running"
          ::Fission::VM.new(name).delete
          # remove it from memory
          @raw=nil
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
veewee-0.5.0.alpha4 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.5.0.alpha3 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.5.0.alpha2 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.5.0.alpha1 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.4.5.1 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.4.5 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.4.5.pre1 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.4.4 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.4.3 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.4.2 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.4.1 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.4.0 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.3.12 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.3.11 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.3.10 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.3.9 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-atlassian-0.3.11 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.3.7 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.3.6 lib/veewee/provider/vmfusion/box/destroy.rb
veewee-0.3.5 lib/veewee/provider/vmfusion/box/destroy.rb