cap-laravel 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/cap-laravel.gemspec +1 -1
- data/lib/cap/laravel/artisan.rb +1 -0
- data/lib/cap/laravel/assets.rb +1 -0
- data/lib/cap/laravel/composer.rb +1 -0
- data/lib/cap/laravel/version.rb +1 -1
- data/lib/cap/tasks/artisan.rake +60 -0
- data/lib/cap/tasks/assets.rake +30 -0
- data/lib/cap/tasks/composer.rake +23 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96dedcd01452e0bac077c1e507996779cb62227a
|
4
|
+
data.tar.gz: 5efe1c223d7768452ebf41c58210649994a39862
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd8aafeda84e4405fd8144b1234687149cdc6bafcc09ac97518b6c5b5bc0713aba8bee09ebceab626e808fe47d46d51976179487ed8bece027571f7695f5c497
|
7
|
+
data.tar.gz: 45213a07e3c1ef956e6465e98e8b0e785499a3cf5b75a969582dd008b06b7b51d3a7765812960a9c68666f71a0f832e716bb8616567f5a9c7acb61360806af9c
|
data/cap-laravel.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Gareth Bishop"]
|
10
10
|
spec.email = ["gbishop@wearearchitect.com"]
|
11
11
|
spec.summary = %q{Architect Laravel Capistrano.}
|
12
|
-
spec.description = %q{Capistrano
|
12
|
+
spec.description = %q{Capistrano tasks for deploying Laravel apps at Architect.}
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path("../../tasks/artisan.rake", __FILE__)
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path("../../tasks/assets.rake", __FILE__)
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path("../../tasks/composer.rake", __FILE__)
|
data/lib/cap/laravel/version.rb
CHANGED
@@ -0,0 +1,60 @@
|
|
1
|
+
namespace :artisan do
|
2
|
+
|
3
|
+
namespace :db do
|
4
|
+
|
5
|
+
desc "Perform database migrations"
|
6
|
+
task :migrate do
|
7
|
+
on roles(:db) do
|
8
|
+
within release_path do
|
9
|
+
execute :php, "artisan migrate"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
desc "Refresh database schema" # this will delete all the things
|
15
|
+
task :refresh do
|
16
|
+
on roles(:db) do
|
17
|
+
within current_path do
|
18
|
+
execute :php, "artisan migrate:refresh"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
desc "Seed the database"
|
24
|
+
task :seed do
|
25
|
+
on roles(:db) do
|
26
|
+
within current_path do
|
27
|
+
execute :php, "artisan db:seed"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
desc "Seed a specific class"
|
33
|
+
task :seed_class do
|
34
|
+
ask(:seed_class, "seeder")
|
35
|
+
on roles(:db) do |h|
|
36
|
+
within current_path do
|
37
|
+
execute :php, "artisan db:seed --class=#{fetch(:seed_class)}"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
namespace :app do
|
45
|
+
|
46
|
+
desc "Make the storage dir more accessible"
|
47
|
+
task :storage do
|
48
|
+
on roles(:app) do
|
49
|
+
within current_path do
|
50
|
+
execute :sudo, "chmod -R 777 app/storage"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
|
57
|
+
before 'deploy:finishing', 'artisan:app:storage'
|
58
|
+
after 'deploy:updated', 'artisan:db:migrate'
|
59
|
+
|
60
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
namespace :assets do
|
2
|
+
|
3
|
+
desc "Install node components"
|
4
|
+
task :npm do
|
5
|
+
on roles(:app) do
|
6
|
+
within current_path do
|
7
|
+
execute :npm, "install"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "Run the grunt command"
|
13
|
+
task :grunt do
|
14
|
+
on roles(:app) do
|
15
|
+
within current_path do
|
16
|
+
execute :grunt
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
desc "Run the bower command"
|
22
|
+
task :bower do
|
23
|
+
on roles(:app) do
|
24
|
+
within current_path do
|
25
|
+
execute :bower, "install"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
namespace :composer do
|
2
|
+
|
3
|
+
desc "Install composer packages"
|
4
|
+
task :install do
|
5
|
+
on roles(:app) do
|
6
|
+
within release_path do
|
7
|
+
execute :composer, "install --no-dev --quiet --no-scripts"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "Update installed composer packages"
|
13
|
+
task :update do
|
14
|
+
on roles(:app) do
|
15
|
+
within release_path do
|
16
|
+
execute :composer, "update --no-dev"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
after 'deploy:updating', 'composer:install'
|
22
|
+
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cap-laravel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gareth Bishop
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description: Capistrano
|
55
|
+
description: Capistrano tasks for deploying Laravel apps at Architect.
|
56
56
|
email:
|
57
57
|
- gbishop@wearearchitect.com
|
58
58
|
executables: []
|
@@ -66,7 +66,13 @@ files:
|
|
66
66
|
- Rakefile
|
67
67
|
- cap-laravel.gemspec
|
68
68
|
- lib/cap/laravel.rb
|
69
|
+
- lib/cap/laravel/artisan.rb
|
70
|
+
- lib/cap/laravel/assets.rb
|
71
|
+
- lib/cap/laravel/composer.rb
|
69
72
|
- lib/cap/laravel/version.rb
|
73
|
+
- lib/cap/tasks/artisan.rake
|
74
|
+
- lib/cap/tasks/assets.rake
|
75
|
+
- lib/cap/tasks/composer.rake
|
70
76
|
homepage: ''
|
71
77
|
licenses:
|
72
78
|
- MIT
|