lib/pg_trunk/core/generators.rb
# Add new generator for given operation
# @param [Class < PGTrunk::Operation] operation
Add new generator for given operation
Add new generator for given operation
def register(operation)
      klass = build_generator(operation)
      class_name = klass.name.split("::").last.to_sym
      remove_const(class_name) if const_defined?(class_name)
      const_set(class_name, klass)
    end
def register ( operation ) klass = build_generator ( operation ) class_name = klass . name . split ( "::" ) . last . to_sym remove_const ( class_name ) if const_defined? ( class_name ) const_set ( class_name , klass ) end
Add new generator for given operation
Add new generator for given operation
operation
<not_specific>
<not_specific>
None