capones_recipes 1.11.6 → 1.12.0

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.
@@ -5,7 +5,7 @@ Capistrano::Configuration.instance.load do
5
5
  before "db:setup", "deploy:update_code"
6
6
 
7
7
  namespace :db do
8
- desc "Create database.yaml based on example"
8
+ desc "Create shared directories"
9
9
  task :prepare_config do
10
10
  run "mkdir -p #{shared_path}/db"
11
11
  run "mkdir -p #{shared_path}/config"
@@ -1,11 +1,23 @@
1
1
  Capistrano::Configuration.instance.load do
2
+ before "deploy:setup", "restful_authentication:prepare_config"
2
3
  after "deploy:update_code", "restful_authentication:symlink"
4
+ before "restful_authentication:configure", "deploy:update_code"
3
5
 
4
6
  namespace :restful_authentication do
7
+ desc "Create shared directories"
8
+ task :prepare_config do
9
+ run "mkdir -p #{shared_path}/config/initializers"
10
+ end
11
+
5
12
  desc "Make symlink for site key"
6
13
  task :symlink do
7
14
  run "ln -nfs #{shared_path}/config/initializers/site_keys.rb #{latest_release}/config/initializers/site_keys.rb"
8
15
  end
16
+
17
+ desc "Create new site_key"
18
+ task :configure, :roles => :app do
19
+ run("cd #{latest_release} && /usr/bin/env bundle exec rake auth:gen:site_key RAILS_ENV=#{rails_env}")
20
+ end
9
21
  end
10
22
 
11
23
  namespace :sync do
@@ -1,3 +1,3 @@
1
1
  module CaponesRecipes
2
- VERSION = "1.11.6"
2
+ VERSION = "1.12.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capones_recipes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 39
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 11
9
- - 6
10
- version: 1.11.6
8
+ - 12
9
+ - 0
10
+ version: 1.12.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek (CyT)
@@ -192,3 +192,4 @@ specification_version: 3
192
192
  summary: Some capistrano recipes for use.
193
193
  test_files: []
194
194
 
195
+ has_rdoc: