-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Component: support component redirection
- Loading branch information
Showing
7 changed files
with
93 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package NCM::Component::Component1::Regular; | ||
|
||
use strict; | ||
use warnings; | ||
use parent qw(NCM::Component::component1); | ||
|
||
sub Configure | ||
{ | ||
return __PACKAGE__." Configure"; | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package NCM::Component::Component1::Subby; | ||
|
||
use strict; | ||
use warnings; | ||
use parent qw(NCM::Component::component1); | ||
|
||
|
||
sub Unconfigure | ||
{ | ||
return __PACKAGE__." Unconfigure"; | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package NCM::Component::component1; | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use parent qw(NCM::Component); | ||
use Readonly; | ||
Readonly our $REDIRECT => { | ||
name => 'otherone', | ||
default => 'Regular', | ||
}; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
object template component1_redirect; | ||
|
||
|
||
prefix "/software/components/component1"; | ||
"active" = true; | ||
"otherone" = "Subby"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
object template component1_redirect_none; | ||
|
||
|
||
prefix "/software/components/component1"; | ||
"active" = true; | ||
"otherone" = "DoesNotExist"; |