log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
pub
>
Impl
annotate Lib/Deployment/Batch/CustomAction.pm @ 148:
e6447ad85cb4
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
DOM objects now have a schema and schemaSource properties RegExp now can launder data Improved post to DOM transformation (multiple values a now supported) Added new axes to navigation queries: ancestor and descendant minor changes and bug fixes
author
wizard
date
Mon, 16 Aug 2010 08:26:44 +0400 (2010-08-16)
parents
16ada169ca75
children
76515373dac0
Ignore whitespace changes -
Everywhere:
Within whitespace:
At end of lines:
rev
line source
49
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
1
use strict;
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
2
package Deployment::Batch::CustomAction;
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
3
use base qw(Deployment::Batch::Generic);
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
4
use Common;
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
5
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
6
BEGIN {
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
7
DeclareProperty handlerRun => ACCESS_READ;
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
8
DeclareProperty handlerRollback => ACCESS_READ;
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
9
DeclareProperty Name => ACCESS_READ;
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
10
}
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
11
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
12
sub CTOR {
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
13
my ($this,%args) = @_;
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
14
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
15
$this->{$handlerRun} = $args{Run} || sub {};
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
16
$this->{$handlerRollback} = $args{Rollback} || sub {};
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
17
$this->{$Name} = $args{Name} || $this->SUPER::Name();
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
18
}
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
19
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
20
sub Run {
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
21
my ($this) = @_;
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
22
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
23
$this->{$handlerRun}->($this);
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
24
}
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
25
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
26
sub Rollback {
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
27
my ($this) = @_;
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
28
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
29
$this->{$handlerRollback}->($this);
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
30
}
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
31
16ada169ca75
migrating to the Eclipse IDE
wizard@linux-odin.local
parents:
0
diff
changeset
+
−
32
1;