Skip to content

Commit

Permalink
Merge branch '0.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbaum committed Sep 20, 2017
2 parents 3dec627 + c9746b5 commit 9089690
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Laravel-Artisan Cookbook Changelog

## 0.6.0
* Added support for `php artisan route cache`
* Added support for `php artisan route clear`

## 0.5.1
* Added missing changelog for 0.5.0 features

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Commands that are particular useful for development are not supported.
* migrate:status
* package:discover
* queue:work
* route:cache
* route:clear
* schedule:run
* view:clear

Expand Down Expand Up @@ -89,6 +91,8 @@ Using AWS Opsworks you can pass in the path via custom json:
* `laravel-artisan::package_discover` - Rebuild the cached package manifest.
* `laravel-artisan::queue_work` - Start processing jobs on the queue as a daemon.
* `laravel-artisan::queue_stop` - Stop processing jobs on the queue as a daemon.
* `laravel-artisan::route_cache` - Create a route cache file for faster route registration
* `laravel-artisan::route_clear` - Remove the route cache file.
* `laravel-artisan::schedule_run` - Run the scheduled commands.
* `laravel-artisan::schedule_remove` - Remove the cronjob that runs `php artisan schedule:run`
* `laravel-artisan::view_clear` - Clear all compiled view files.
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'Apache-2.0'
description "Run laravel's artisan commands"
long_description "Run laravel's artisan commands on remote nodes"
version '0.5.1'
version '0.6.0'
chef_version '>= 12.1' if respond_to?(:chef_version)
supports 'ubuntu', '= 16.04'

Expand Down
15 changes: 15 additions & 0 deletions recipes/route_cache.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Cookbook:: laravel-artisan
# Recipe:: route_cache
#
# Copyright:: 2017, The Authors, All Rights Reserved.

include_recipe 'laravel-artisan::default'

COMMAND = 'route:cache'

execute "php artisan #{COMMAND}" do
cwd node['laravel-artisan']['path']
command "#{node['laravel-artisan']['call']} #{COMMAND} #{node['laravel-artisan']['verbosity']}"
action :run
end
15 changes: 15 additions & 0 deletions recipes/route_clear.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Cookbook:: laravel-artisan
# Recipe:: route_clear
#
# Copyright:: 2017, The Authors, All Rights Reserved.

include_recipe 'laravel-artisan::default'

COMMAND = 'route:clear'

execute "php artisan #{COMMAND}" do
cwd node['laravel-artisan']['path']
command "#{node['laravel-artisan']['call']} #{COMMAND} #{node['laravel-artisan']['verbosity']}"
action :run
end

0 comments on commit 9089690

Please sign in to comment.