Sha256: c886eb3a1227a0506f67f5a207a23b1e79d56c38482ceb00d4559c5b7d7e34f1

Contents?: true

Size: 637 Bytes

Versions: 35

Compression:

Stored size: 637 Bytes

Contents

##Note: this is currently not used anymore, it seems no one is using it

module Veewee
  class Transaction

  def transaction(name,params, &block)
  end

  def transaction2(name,options= { :checksum => "nochecksum"}, &block)
     if snapshot_exists(@vmname,name+"-"+options[:checksum])
        load_snapshot_vmachine(@vmname,name+"-"+options[:checksum])
      else
        if snapshot_version_exists(@vmname,name)
          rollback_snapshot(@vmname,name)
          #rollback to snapshot prior to this one
        end
        yield
        create_snapshot_vmachine(@vmname,name+"-"+options[:checksum])
      end
    #end
  end


end
end

Version data entries

35 entries across 35 versions & 2 rubygems

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