Sha256: 90b65819e76202e5e78b2cbe540e02db1704167018648855ce41e8965f42bdcf
Contents?: true
Size: 542 Bytes
Versions: 3
Compression:
Stored size: 542 Bytes
Contents
module Reactor module Plans class DeleteAttribute < CommonAttribute def initialize(*args) super() (name, x), options = separate_arguments(*args) @name = name || options[:name] end def prepare! error("name is nil") if @name.nil? error("attribute #{@name} does not exist") if not Reactor::Cm::Attribute.exists?(@name) # TODO: check used.. end def migrate! attrib = Reactor::Cm::Attribute.get(@name) attrib.delete! end end end end
Version data entries
3 entries across 3 versions & 1 rubygems