cap-laravel 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c57b4d9a0078423d463f602e9bfcd59298dc87a4
4
- data.tar.gz: 15338e071614b8233b189be323bd64d8e5fa00c0
3
+ metadata.gz: 96dedcd01452e0bac077c1e507996779cb62227a
4
+ data.tar.gz: 5efe1c223d7768452ebf41c58210649994a39862
5
5
  SHA512:
6
- metadata.gz: 63d529c7cc00eb67d02c955e1ffa7bd0ad6eb172dfe2e782ffdcea491c4c9b8005f083116414e9abc3f333e733a4bf32fbf1d9ecb320edd42451ba887afa6308
7
- data.tar.gz: 6a5e819c3391d381b8dcac30d642ed7f6498f5fda00ea9c3890a9cab84ab996923e6648d823cb518a44eb7f0c8168af321eb18087109353530cd4b3331df5b3c
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 files for deploying Laravel apps at Architect.}
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__)
@@ -1,5 +1,5 @@
1
1
  module Cap
2
2
  module Laravel
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -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.1
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 files for deploying Laravel apps at Architect.
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