]> git.mjollnir.org Git - cil.git/commitdiff
Fix up where these functions now live
authorAndrew Chilton <andychilton@gmail.com>
Fri, 3 Oct 2008 01:06:35 +0000 (14:06 +1300)
committerAndrew Chilton <andychilton@gmail.com>
Fri, 3 Oct 2008 01:06:35 +0000 (14:06 +1300)
lib/CIL/Command/Am.pm
lib/CIL/Command/Attach.pm
lib/CIL/Command/Comment.pm
lib/CIL/Command/Steal.pm

index 1fbd749f480f97c514ca56305e33911a8775af74..dde1812acd79ed16e548d37cb21caad9d718e7b5 100644 (file)
@@ -110,7 +110,7 @@ sub run {
         $issue->Summary( $subject );
         $issue->Status( 'New' );
         $issue->CreatedBy( $from );
-        $issue->AssignedTo( user($cil) );
+        $issue->AssignedTo( CIL::Utils->user($cil) );
         $issue->Inserted( $date );
         $issue->Updated( $date );
         $issue->Description( $body );
index ed354c5bf4dc8871eda348203cd560c9ca50d531..412498312f017d39eb565142adf1f5b069e3749e 100644 (file)
@@ -33,7 +33,7 @@ sub name { 'attach' }
 sub run {
     my ($self, $cil, undef, $issue_name, $filename) = @_;
 
-    my $issue = load_issue_fuzzy( $cil, $issue_name );
+    my $issue = CIL::Utils->load_issue_fuzzy( $cil, $issue_name );
 
     # check to see if the file exists
     unless ( -r $filename ) {
@@ -41,7 +41,7 @@ sub run {
     }
 
     my $basename = basename( $filename );
-    my $user = user($cil);
+    my $user = CIL::Utils->user($cil);
 
     my $add_attachment_text = <<"EOF";
 Filename    : $basename
index c7a8cbb3753647cb87314ec6228be7a0197fe850..d47f479db3f7d8e722278b98094df46ae9a2842a 100644 (file)
@@ -33,14 +33,14 @@ sub name { 'comment' }
 sub run {
     my ($self, $cil, undef, $issue_name) = @_;
 
-    my $issue = load_issue_fuzzy( $cil, $issue_name );
+    my $issue = CIL::Utils->load_issue_fuzzy( $cil, $issue_name );
 
     CIL::Utils->ensure_interactive();
 
     # create the new comment
     my $comment = CIL::Comment->new('tmpname');
     $comment->Issue( $issue->name );
-    $comment->CreatedBy( user($cil) );
+    $comment->CreatedBy( CIL::Utils->user($cil) );
     $comment->Description("Description ...");
 
     CIL::Utils->add_comment_loop($cil, undef, $issue, $comment);
index 2d2a9bb1a559c2c4747a24944ba2a0b8895d0133..901926e9edf9f055aade6a7a789d065e7bdc705c 100644 (file)
@@ -37,7 +37,7 @@ sub run {
     my $issue = CIL::Utils->load_issue_fuzzy( $cil, $issue_name );
 
     # set the AssignedTo for this issue to you (because you're stealing it)
-    $issue->AssignedTo( user($cil) );
+    $issue->AssignedTo( CIL::Utils->user($cil) );
     $issue->save($cil);
 
     CIL::Utils->display_issue($cil, $issue);