eycap 0.5.19 → 0.5.20

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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.5.20 / 2011-07-21
2
+ * merged pull request #25 - added :except clause for non-nginx app servers
3
+ * merged pull request #24 - exclude 'test' and 'development' in bundler
4
+
1
5
  == 0.5.19 / 2011-07-19
2
6
  * Removed redundant bundle exec from rake db:migrate task as bundler will inject 'bundle exec rake' it since 1.0.8.
3
7
 
@@ -3,7 +3,7 @@ Capistrano::Configuration.instance(:must_exist).load do
3
3
  desc "Automatically installed your bundled gems if a Gemfile exists"
4
4
  task :bundle_gems do
5
5
  run "mkdir -p #{shared_path}/bundled_gems"
6
- run "if [ -f #{release_path}/Gemfile ]; then cd #{release_path} && bundle install --without=test,development --binstubs #{release_path}/bin --path #{shared_path}/bundled_gems; fi"
6
+ run "if [ -f #{release_path}/Gemfile ]; then cd #{release_path} && bundle install --without=test development --binstubs #{release_path}/bin --path #{shared_path}/bundled_gems; fi"
7
7
  end
8
8
  after "deploy:symlink_configs","bundler:bundle_gems"
9
9
  end
@@ -2,37 +2,37 @@ Capistrano::Configuration.instance(:must_exist).load do
2
2
 
3
3
  namespace :nginx do
4
4
  desc "Start Nginx on the app slices."
5
- task :start, :roles => :app do
5
+ task :start, :roles => :app, :except => {:nginx => false} do
6
6
  sudo "nohup /etc/init.d/nginx start 2>&1 | cat"
7
7
  end
8
8
 
9
9
  desc "Restart the Nginx processes on the app slices."
10
- task :restart , :roles => :app do
10
+ task :restart , :roles => :app, :except => {:nginx => false} do
11
11
  sudo "nohup /etc/init.d/nginx restart 2>&1 | cat"
12
12
  end
13
13
 
14
14
  desc "Stop the Nginx processes on the app slices."
15
- task :stop , :roles => :app do
15
+ task :stop , :roles => :app, :except => {:nginx => false} do
16
16
  sudo "/etc/init.d/nginx stop"
17
17
  end
18
18
 
19
19
  desc "Reload the Nginx config on the app slices."
20
- task :reload , :roles => :app do
20
+ task :reload , :roles => :app, :except => {:nginx => false} do
21
21
  sudo "/etc/init.d/nginx reload"
22
22
  end
23
23
 
24
24
  desc "Upgrade the Nginx processes on the app slices."
25
- task :upgrade , :roles => :app do
25
+ task :upgrade , :roles => :app, :except => {:nginx => false} do
26
26
  sudo "/etc/init.d/nginx upgrade"
27
27
  end
28
28
 
29
29
  desc "Test the Nginx config on the app slices."
30
- task :configtest , :roles => :app do
30
+ task :configtest , :roles => :app, :except => {:nginx => false} do
31
31
  sudo "/etc/init.d/nginx configtest"
32
32
  end
33
33
 
34
34
  desc "Tail the nginx error logs on the app slices"
35
- task :tail_error, :roles => :app do
35
+ task :tail_error, :roles => :app, :except => {:nginx => false} do
36
36
  run "tail -f /var/log/engineyard/nginx/error.log" do |channel, stream, data|
37
37
  puts "#{channel[:server]}: #{data}" unless data =~ /^10\.[01]\.0/ # skips lb pull pages
38
38
  break if stream == :err
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eycap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 45
4
+ hash: 35
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 19
10
- version: 0.5.19
9
+ - 20
10
+ version: 0.5.20
11
11
  platform: ruby
12
12
  authors:
13
13
  - Engine Yard