Class: CPEE::ModelManagement::DeleteItem

Inherits:
Riddl::Implementation
  • Object
show all
Defined in:
lib/cpee-model-management/implementation.rb

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



617
618
619
620
621
622
623
624
625
626
627
628
629
# File 'lib/cpee-model-management/implementation.rb', line 617

def response
  where = @a[0] == :main ? '' : @r[0..-2].map{ |d| Riddl::Protocols::Utils::unescape(d) }.join('/')
  conns = @a[1]
  models = @a[2]
  name  = File.basename(@r.last,'.xml')
  fname = File.join(models,where,name + '.xml')

  dn     = CPEE::ModelManagement::get_dn @h['DN']
  author = dn['GN'] + ' ' + dn['SN']

  CPEE::ModelManagement::op author, 'rm', models, File.join('.', where, name + '.xml')
  CPEE::ModelManagement::notify conns, 'delete', models, fname
end