Class: CPEE::ModelManagement::DeleteDir

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

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



632
633
634
635
636
637
638
639
640
641
642
643
644
# File 'lib/cpee-model-management/implementation.rb', line 632

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

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

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