Skip to content

Commit

Permalink
add lib and meta
Browse files Browse the repository at this point in the history
  • Loading branch information
melezhik committed Aug 16, 2016
1 parent 191c6a6 commit 819e78c
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
18 changes: 18 additions & 0 deletions META.info
@@ -0,0 +1,18 @@
{
"name" : "Sparrowdo::Nginx",
"version" : "*",
"description" : "Sparrwodo module to install Nginx web server",
"authors" : [ "Alexey Melezhik"],
"depends" : [
"Sparrowdo"
],
"source-type" : "git",
"support" : {
"bugtracker" : "https://github.com/melezhik/sparrowdo-nginx/issues",
"source" : "https://github.com/melezhik/sparrowdo-nginx.git"
},
"provides" : {
"Sparrowdo::Nginx" : "lib/Sparrowdo/Nginx.pm6"
},
"source-url" : "https://github.com/melezhik/sparrowdo-nginx.git"
}
1 change: 1 addition & 0 deletions README
29 changes: 29 additions & 0 deletions lib/Sparrowdo/Nginx.pm6
@@ -0,0 +1,29 @@
use v6;

unit module Sparrowdo::Nginx;

use Sparrowdo;

sub tasks (%args) {

task_run %(
task => 'install nginx',
plugin => 'package-generic',
parameters => %( list => 'nginx' )
);

task_run %(
task => 'enable nginx',
plugin => 'service',
parameters => %( service => 'nginx', action => 'enable' )
);

task_run %(
task => 'start nginx',
plugin => 'service',
parameters => %( service => 'nginx', action => 'start' )
);


}

0 comments on commit 819e78c

Please sign in to comment.