class RevokeRunner

Attributes

box[R]
version[R]

Public Class Methods

new(opts) click to toggle source
# File lib/bento/revoke.rb, line 8
def initialize(opts)
  @box = opts.box
  @version = opts.version
end

Public Instance Methods

start() click to toggle source
# File lib/bento/revoke.rb, line 13
def start
  banner("Revoking #{box}/#{version}...")
  time = Benchmark.measure do
    box = vc_account.get_box(box)
    version = box.get_version(version)
    version.revoke
  end
  banner("Revoke finished in #{duration(time.real)}.")
end