- Pluginã¨ãã¯HStaff::Plugin::*ã«ã
- NaoyaãKanjiManã¯HStaffãç¶æ¿ã
#!/usr/bin/env perl
use strict;
use warnings;
use Naoya;
Naoya->new->bell;
use KanjiMan;
KanjiMan->new->bell;
package HStaff;
use strict;
use warnings;
use Class::Component;
__PACKAGE__->load_components(
qw/ Autocall::InjectMethod /
);
1;
package HStaff::Plugin::Jitensya;
use strict;
use warnings;
use base 'Class::Component::Plugin';
use Perl6::Say;
sub bell : Method {
my($self, $context, @args) = @_;
say $self->config->{sound};
}
1;
package Naoya;
use strict;
use warnings;
use base 'HStaff';
use Class::Component config => {
Jitensya => { sound => 'ã¡ããã¡ãã' },
};
__PACKAGE__->load_plugins(qw/ Jitensya /);
1;
package KanjiMan;
use strict;
use warnings;
use base 'HStaff';
use Class::Component config => {
Jitensya => { sound => 'ãããã' },
Nijikai => { where => 'watami' },
};
__PACKAGE__->load_plugins(qw/ Jitensya Nijikai /);
1;
- ãµã¼ãã®ç¨®é¡(Web, DB, LVSã¨ã)ãã¨ã«ã¨ãã¸ã¯ã©ã¹ãä½ãã
- ã¨ãã¸ã¯ã©ã¹ã¯ Server ã¯ã©ã¹ãç¶æ¿ã
- Server::Plugin::* ã§ã¡ã¿æ
å ±ãè¿ãã¢ã¸ã¥ã¼ã«/ã¡ã½ãããä½ãã
- IPã¢ãã¬ã¹ãè¿ãã¡ã½ããã¯å
¨é¨ã®ã¨ãã¸ã¯ã©ã¹ã«çããã
- DBã®ã¹ã¬ã¼ããè¿ãã¡ã½ããã¯DBã¯ã©ã¹ã ãã«çããã
- VRRPã®IDãè¿ãã¡ã½ããã¯LVSã¯ã©ã¹ã ãã«çããã
- ã¨ã
- ãããªãã¨ãã