Sha256: da9f850970b895a22f1f41b970030f3e104a5ce217eddb1e660d54259c6b3611

Contents?: true

Size: 482 Bytes

Versions: 8

Compression:

Stored size: 482 Bytes

Contents

module Reactor
  module Plans
    class DeleteObjClass < CommonObjClass
      include Prepared

      def initialize(*args)
        super()
        (name, x), options = separate_arguments(*args)
        @name = name || options[:name]
      end

      def prepare!
        error("objClass #{@name} not found") unless Reactor::Cm::ObjClass.exists?(@name)
      end

      def migrate!
        klass = Reactor::Cm::ObjClass.get(@name)
        klass.delete!
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
infopark_reactor-1.29.1 lib/reactor/plans/delete_obj_class.rb
infopark_reactor-1.29.0 lib/reactor/plans/delete_obj_class.rb
infopark_reactor-1.28.0 lib/reactor/plans/delete_obj_class.rb
infopark_reactor-1.27.0.rc10 lib/reactor/plans/delete_obj_class.rb
infopark_reactor-1.27.0.rc9 lib/reactor/plans/delete_obj_class.rb
infopark_reactor-1.27.0.rc8 lib/reactor/plans/delete_obj_class.rb
infopark_reactor-1.27.0.rc7 lib/reactor/plans/delete_obj_class.rb
infopark_reactor-1.27.0.rc4 lib/reactor/plans/delete_obj_class.rb