california 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8bfdd67a9f3ee5fdd0b596fd1167067e0077a5ac
4
- data.tar.gz: 2222a88579562b1b19b3c6198129ad22ce21e8f4
3
+ metadata.gz: ed1f0d567e2dfa5248a65ba6f83cc97fe8b3458e
4
+ data.tar.gz: 4fdb39f71546ba78c96be74c4a3973ce4e4a5562
5
5
  SHA512:
6
- metadata.gz: 8b7a2a7ff7f4271948d4233bec61225651493c33e66267669c9ee83d02667085309536ecfcf5fa1214a109b8c4d39353ea8b64e7ad4dc2c1417ec78cc3dab214
7
- data.tar.gz: 42ce9ca509167b5cd4c0f1a98a337d3341a217cab2d840ae4ab903ed70d9618babef041e5f5337f88a7cd3991f233fe15798dfa9ca13fb53e763f5f8bdf4efa9
6
+ metadata.gz: d9fe15b9104920427709137dcdac0b3ee78ae96cba8a1bfeed76f1b2b7f43179ac148dc72239a357bf373b7080cc4b005cd045a3ef6354335eecad5b8ab62dd8
7
+ data.tar.gz: 27e1cc27c1200263ca6bf18d68974e9ec101f8a258bb6eea2df914ea403aa2e990986b226f1c8aca1534993981d5d3e65f79f45ccd82274aa763bfd14b4e6874
@@ -8,3 +8,4 @@ install_plugin Capistrano::SCM::Plugin
8
8
 
9
9
  load 'california/capistrano/tasks/deploy.rake'
10
10
  load 'california/capistrano/tasks/rails.rake'
11
+ load 'california/capistrano/tasks/yarn.rake'
@@ -0,0 +1,15 @@
1
+ namespace :yarn do
2
+
3
+ task :install do
4
+ logger.info 'Installing yarn dependencies...'
5
+
6
+ on roles :web_server do
7
+ as fetch(:application) do
8
+ within fetch(:deploy_to) do
9
+ execute :yarn, :install
10
+ end
11
+ end
12
+ end
13
+ end
14
+
15
+ end
@@ -1,8 +1,9 @@
1
- set :application, File.basename(File.expand_path('../..', __FILE__))
1
+ set :application, File.basename(File.expand_path('..', __dir__))
2
2
 
3
3
  # Disallow robots unless deploying to production.
4
4
  after 'deploy:updated', 'deploy:disallow_robots'
5
5
 
6
- # For Rails you should uncomment these custom task hooks.
6
+ # For Rails you may uncomment these custom task hooks.
7
+ # after 'deploy:updated', 'yarn:install'
7
8
  # after 'deploy:updated', 'rails:assets:precompile'
8
9
  # after 'deploy:updated', 'rails:migrate'
@@ -1,3 +1,3 @@
1
1
  module California
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: california
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - halo
@@ -107,6 +107,7 @@ files:
107
107
  - lib/california/capfile.rb
108
108
  - lib/california/capistrano/tasks/deploy.rake
109
109
  - lib/california/capistrano/tasks/rails.rake
110
+ - lib/california/capistrano/tasks/yarn.rake
110
111
  - lib/california/cli.rb
111
112
  - lib/california/stage
112
113
  - lib/california/stage.rb