App::CharmKit - ez pz charm authoring
#!/usr/bin/env perl # # In hooks/install BEGIN { system "apt-get install -qyf cpanminus"; system "cpanm -qn App::CharmKit"; } use charm; pkg ['znc', 'znc-perl', 'znc-tcl', 'znc-python'], ensure => "present"; my $hook_path = $ENV{JUJU_CHARM_DIR}; file "/etc/systemd/system/znc.service", source => "$hook_path/templates/znc.service"; my $content = template("$hook_path/templates/znc.conf", port => sh 'config-get port'); file "/home/ubuntu/.znc/configs", ensure => "directory", owner => "ubuntu", group => "ubuntu"; file "/home/ubuntu/.znc/configs/znc.conf", owner => "ubuntu", group => "ubuntu", content => $content, on_change => sub { service znc => "restart" };
Sugar package for making Juju charm authoring easier. We import several underlying packages such as Rex and Path::Tiny.
Adam Stokes <adamjs@cpan.org>
To install App::CharmKit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::CharmKit
CPAN shell
perl -MCPAN -e shell install App::CharmKit
For more information on module installation, please visit the detailed CPAN module installation guide.