~ubuntu-branches/ubuntu/vivid/zentyal-core/vivid-proposed

« back to all changes in this revision

Viewing changes to src/scripts/shell

  • Committer: Package Import Robot
  • Author(s): Jorge Salamero Sanz
  • Date: 2012-08-28 10:03:33 UTC
  • Revision ID: package-import@ubuntu.com-20120828100333-oz3n5kpav4z0tl27
Tags: 2.3.21+quantal1
New upstream release for Quantal

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
use EBox;
28
28
use EBox::Global;
29
 
use EBox::Model::ModelManager;
 
29
use EBox::Model::Manager;
30
30
 
31
31
EBox::init();
32
32
 
95
95
    my ($model) = $cmd =~ /^model (\w+);*/;
96
96
    if ($model) {
97
97
        my $var = lc($model);
98
 
        return "my \$$var; try { \$$var = EBox::Model::ModelManager->instance()->model('$model'); print '\$$var\n'; } otherwise { print \"Error: Model '$model' not found\n\" };";
 
98
        return "my \$$var; try { \$$var = EBox::Model::Manager->instance()->model('$model'); print '\$$var\n'; } otherwise { print \"Error: Model '$model' not found\n\" };";
99
99
    }
100
100
    my ($call) = $cmd =~ /^call (.+);*/;
101
101
    if ($call) {