Skip to content

Commit

Permalink
add docs about call DSL
Browse files Browse the repository at this point in the history
  • Loading branch information
shibayu36 committed Oct 20, 2013
1 parent fbc721e commit 29d7e88
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/Cinnamon.pm
Expand Up @@ -85,6 +85,13 @@ Cinnamon - A minimalistic deploy tool
},
};
# You can call other tasks
task deploy => sub {
my ($host) = @_;
call "update", $host;
call "restart", $host;
};
=head1 WARNINGS
This software is under the heavy development and considered ALPHA quality. Things might be broken, not all features have been implemented, and APIs will be likely to change.
Expand Down Expand Up @@ -258,6 +265,20 @@ whereas done on localhost without it.
Remote login username is retrieved by C<get 'user'> or C<`whoami`>
command. Set appropriate username in advance if needed.
=head3 call ( I<$task_name: String>, I<$host: String> )
=over 4
task deploy => sub {
my ($host) = @_;
call "update", $host;
call "web:restart", $host;
};
=back
Call other tasks in a task code.
=head2 Configuration Variables
Cinnamon configuration is managed by set function. You can customize following variables.
Expand Down

0 comments on commit 29d7e88

Please sign in to comment.