Skip to content

Commit

Permalink
Merge pull request #11 from ctf0/master
Browse files Browse the repository at this point in the history
update name to be artisan 5
  • Loading branch information
dydx committed Jan 10, 2016
2 parents 076d007 + a20aefc commit 69d7b80
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 119 deletions.
9 changes: 9 additions & 0 deletions Laravel 5 Artisan.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ def run(self, *args, **kwargs):

if os.path.isfile("%s" % artisan_path):
self.command = kwargs.get('command', None)
if self.command == 'serveStop':
plat = platform.system()
if plat == 'Windows':
self.command = 'taskkill /F /IM php.exe'
else:
self.command = 'killall php'
self.args = []
else:
self.args = [self.php_path, artisan_path]
self.fill_in_accept = kwargs.get('fill_in', False)
self.fill_in_label = kwargs.get('fill_in_lable', 'Enter the resource name')
self.fields_accept = kwargs.get('fields', False)
Expand Down
Loading

0 comments on commit 69d7b80

Please sign in to comment.