capones_recipes 1.8.0 → 1.9.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.
@@ -1,14 +1,12 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../utilities')
2
2
 
3
- Capistrano::Configuration.instance(:must_exist).load do
4
- after "deploy:setup", "airbrake:setup"
5
-
3
+ Capistrano::Configuration.instance.load do
6
4
  namespace :airbrake do
7
5
  desc "Creates the air brake initializer with the custom API key."
8
- task :setup do
6
+ task :prepare_config do
9
7
  api_key = Utilities.ask('Please insert the API key.', '')
10
- run "mkdir -p #{shared_path}/config/initializers"
11
8
  initializer_template = File.expand_path(File.dirname(__FILE__) + '/templates/airbrake.rb')
12
- put Utilities.init_file(initializer_template, "<%%>", api_key), "#{shared_path}/config/initializers/airbrake.rb" end
9
+ put Utilities.init_file(initializer_template, "<%%>", api_key), "#{shared_path}/config/initializers/airbrake.rb"
10
+ end
13
11
  end
14
- end
12
+ end
@@ -1,14 +1,11 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../utilities')
2
2
 
3
3
  Capistrano::Configuration.instance(true).load do
4
- after "deploy:setup", "bookyt:setup"
5
4
  after "deploy:finalize_update", "bookyt:symlink"
6
5
 
7
6
  namespace :bookyt do
8
- desc "Asks which modules should be initialized and writes the config/initializer/bookyt.rb"
9
- task :setup, :roles => :app do
10
- run "mkdir -p #{shared_path}/initializer"
11
-
7
+ desc "Interactive configuration"
8
+ task :prepare_config, :roles => :app do
12
9
  modules = [:pos, :salary, :stock, :projects].inject([]) do |out, pos|
13
10
  out << "bookyt_#{pos.to_s}" if Utilities.yes? "Install bookyt_#{pos.to_s}"
14
11
 
@@ -26,4 +26,4 @@ Capistrano::Configuration.instance.load do
26
26
  run "ln -nfs #{shared_path}/db/#{rails_env}.sqlite3 #{release_path}/db/#{rails_env}.sqlite3"
27
27
  end
28
28
  end
29
- end
29
+ end
@@ -1,11 +1,9 @@
1
1
  Capistrano::Configuration.instance.load do
2
- before "deploy:setup", :new_relic
3
2
  after "deploy:update_code", "new_relic:symlink"
4
3
 
5
4
  namespace :new_relic do
6
- desc "Create application yaml in capistrano shared path"
7
- task :default do
8
- run "mkdir -p #{shared_path}/config"
5
+ desc "Creates newrelic configuration based on example"
6
+ task :prepare_config do
9
7
  upload "config/newrelic.yml.example", "#{shared_path}/config/newrelic.yml", :via => :scp
10
8
  end
11
9
 
@@ -14,4 +12,4 @@ Capistrano::Configuration.instance.load do
14
12
  run "ln -nfs #{shared_path}/config/newrelic.yml #{release_path}/config/newrelic.yml"
15
13
  end
16
14
  end
17
- end
15
+ end
@@ -1,10 +1,9 @@
1
1
  Capistrano::Configuration.instance.load do
2
- before "deploy:setup", :db
3
2
  after "deploy:finalize_update", "db:symlink"
4
3
 
5
4
  namespace :db do
6
- desc "Create database yaml in capistrano shared path"
7
- task :default do
5
+ desc "Create database.yaml based on example"
6
+ task :prepare_config do
8
7
  run "mkdir -p #{shared_path}/config"
9
8
  upload "config/database.yml.example", "#{shared_path}/config/database.yml", :via => :scp
10
9
  end
@@ -1,13 +1,7 @@
1
1
  Capistrano::Configuration.instance.load do
2
- before "deploy:setup", "restful_authentication:setup"
3
2
  after "deploy:update_code", "restful_authentication:symlink"
4
3
 
5
4
  namespace :restful_authentication do
6
- desc "Create site_keys in capistrano shared path"
7
- task :setup do
8
- run "mkdir -p #{shared_path}/config/initializers"
9
- end
10
-
11
5
  desc "Make symlink for shared uploads"
12
6
  task :symlink do
13
7
  run "ln -nfs #{shared_path}/config/initializers/site_keys.rb #{release_path}/config/initializers/site_keys.rb"
@@ -1,10 +1,9 @@
1
1
  Capistrano::Configuration.instance.load do
2
- before "deploy:setup", :settings_logic
3
2
  before "db:symlink", "settings_logic:symlink"
4
3
 
5
4
  namespace :settings_logic do
6
5
  desc "Create application yaml in capistrano shared path"
7
- task :default do
6
+ task :prepare_config do
8
7
  run "mkdir -p #{shared_path}/config"
9
8
  upload "config/application.yml.example", "#{shared_path}/config/application.yml", :via => :scp
10
9
  end
@@ -14,4 +13,4 @@ Capistrano::Configuration.instance.load do
14
13
  run "ln -nfs #{shared_path}/config/application.yml #{release_path}/config/application.yml"
15
14
  end
16
15
  end
17
- end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module CaponesRecipes
2
- VERSION = "1.8.0"
2
+ VERSION = "1.9.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: 51
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 8
8
+ - 9
9
9
  - 0
10
- version: 1.8.0
10
+ version: 1.9.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek (CyT)
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-11-30 00:00:00 +01:00
19
+ date: 2011-12-01 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency