diff --git a/Web/lib/MJB/Web.pm b/Web/lib/MJB/Web.pm
index 6d28ce0..73d64de 100644
--- a/Web/lib/MJB/Web.pm
+++ b/Web/lib/MJB/Web.pm
@@ -31,7 +31,7 @@ sub startup ($self) {
);
});
- $self->helper( deploy_blog => sub ( $c, $blog ) {
+ $self->helper( sync_blog => sub ( $c, $blog ) {
my $build_job_id = $c->minion->enqueue( 'sync_blog', [ $blog->id ], {
notes => { '_bid_' . $blog->id => 1 },
priority => $blog->build_priority,
diff --git a/Web/lib/MJB/Web/Controller/Dashboard.pm b/Web/lib/MJB/Web/Controller/Dashboard.pm
index 5de29d5..1f60c27 100644
--- a/Web/lib/MJB/Web/Controller/Dashboard.pm
+++ b/Web/lib/MJB/Web/Controller/Dashboard.pm
@@ -45,7 +45,7 @@ sub do_blog_post_remove ( $c ) {
$jekyll->remove_markdown_file( $post );
- $c->deploy_blog( $blog );
+ $c->sync_blog( $blog );
$c->flash( confirmation => "That post has been removed." );
$c->redirect_to( $c->url_for( 'show_dashboard_blog_posts', { id => $blog->id } ) );
@@ -69,7 +69,7 @@ sub do_blog_post_edit ( $c ) {
$jekyll->write_post( $post );
- $c->deploy_blog( $blog );
+ $c->sync_blog( $blog );
$c->flash( confirmation => "Updated $title!" );
$c->redirect_to( $c->url_for( 'show_dashboard_blog_posts', { id => $blog->id } ) );
@@ -114,7 +114,7 @@ sub do_blog_post ( $c ) {
$jekyll->write_post( $post );
- $c->deploy_blog( $blog );
+ $c->sync_blog( $blog );
$c->flash( confirmation => "Created $title!" );
$c->redirect_to( $c->url_for( 'show_dashboard_blog_posts', { id => $blog->id } ) );
@@ -145,7 +145,7 @@ sub do_blog_settings ($c) {
$jekyll->write_config;
- $c->deploy_blog( $blog );
+ $c->sync_blog( $blog );
$c->flash( confirmation => "The settings have been updated!!" );
$c->redirect_to( $c->url_for( 'show_dashboard_blog_settings', { id => $blog->id } ) );
@@ -172,7 +172,7 @@ sub do_blog_config ( $c ) {
$jekyll->write_config;
- $c->deploy_blog( $blog );
+ $c->sync_blog( $blog );
$c->flash( confirmation => "The config has been updated!!" );
$c->redirect_to( $c->url_for( 'show_dashboard_blog_config', { id => $blog->id } ) );
@@ -250,7 +250,7 @@ sub do_blog_history ( $c ) {
if ( $old_commit ) {
$jekyll->revert_commit( $commit );
- $c->deploy_blog( $blog );
+ $c->sync_blog( $blog );
$c->flash( confirmation => "Undid $commit!" );
$c->redirect_to( $c->url_for( 'show_dashboard_blog_history', { id => $blog->id } ) );
@@ -292,7 +292,7 @@ sub do_blog_page_remove ( $c ) {
$jekyll->remove_markdown_file( $page );
- $c->deploy_blog( $blog );
+ $c->sync_blog( $blog );
$c->flash( confirmation => "That page has been removed." );
$c->redirect_to( $c->url_for( 'show_dashboard_blog_pages', { id => $blog->id } ) );
@@ -322,7 +322,7 @@ sub do_blog_page_edit ( $c ) {
$jekyll->write_post( $blog_page );
- $c->deploy_blog( $blog );
+ $c->sync_blog( $blog );
$c->flash( confirmation => "Updated Page " . $blog_page->filename . "!" );
$c->redirect_to( $c->url_for( 'show_dashboard_blog_pages', { id => $blog->id } ) );
@@ -341,7 +341,7 @@ sub do_blog_post_alter ( $c ) {
$c->jekyll($blog->domain->name)->write_post( $post );
- $c->deploy_blog( $blog );
+ $c->sync_blog( $blog );
$c->flash( confirmation => "Updated Post " . $post->headers->{title} . "!" );
$c->redirect_to( $c->url_for( 'show_dashboard_blog_posts', { id => $blog->id } ) );
@@ -367,7 +367,7 @@ sub do_blog_page ( $c ) {
$jekyll->write_post( $page );
- $c->deploy_blog( $blog );
+ $c->sync_blog( $blog );
$c->flash( confirmation => "Created Page " . $page->filename . "!" );
$c->redirect_to( $c->url_for( 'show_dashboard_blog_pages', { id => $blog->id } ) );