le1t0-deprec 2.1.6.059 → 2.1.6.061

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,8 @@
1
- require 'sha1'
1
+ begin
2
+ require 'digest/sha1'
3
+ rescue LoadError => e
4
+ require 'sha1'
5
+ end
2
6
 
3
7
  # Copyright 2006-2009 by Mike Bailey. All rights reserved.
4
8
  Capistrano::Configuration.instance(:must_exist).load do
@@ -141,6 +141,10 @@ Capistrano::Configuration.instance(:must_exist).load do
141
141
 
142
142
  desc "Push out config files for rails app."
143
143
  task :config do
144
+ config_web_app_services
145
+ end
146
+
147
+ task :config_web_app_services, :roles => [ :web, :passenger ] do
144
148
  top.deprec.web.config_project if web_choice.to_s != 'none'
145
149
  top.deprec.app.config_project if app_choice.to_s != 'none'
146
150
  end
@@ -243,11 +247,15 @@ Capistrano::Configuration.instance(:must_exist).load do
243
247
 
244
248
  desc "Activate web, app and monit"
245
249
  task :activate_services do
250
+ top.deprec.rails.activate_web_app_services
251
+ top.deprec.monit.activate if use_monit # FIXME: should be generic namespace monitoring, with :none option
252
+ end
253
+
254
+ task :activate_web_app_services, :roles => [ :web, :passenger ] do
246
255
  top.deprec.web.activate if web_choice.to_s != 'none'
247
256
  top.deprec.app.activate if app_choice.to_s != 'none'
248
- top.deprec.monit.activate if use_monit # FIXME: should be generic namespace monitoring, with :none option
249
257
  end
250
-
258
+
251
259
  # database.yml stuff
252
260
  #
253
261
  # XXX DRY this up
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: le1t0-deprec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
9
  - 6
10
- - 59
11
- version: 2.1.6.059
10
+ - 61
11
+ version: 2.1.6.061
12
12
  platform: ruby
13
13
  authors:
14
14
  - Le1t0
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-23 00:00:00 +01:00
19
+ date: 2010-12-07 00:00:00 +01:00
20
20
  default_executable: depify
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -27,13 +27,13 @@ dependencies:
27
27
  requirements:
28
28
  - - "="
29
29
  - !ruby/object:Gem::Version
30
- hash: 45
30
+ hash: 41
31
31
  segments:
32
32
  - 2
33
33
  - 5
34
34
  - 18
35
- - 17
36
- version: 2.5.18.017
35
+ - 19
36
+ version: 2.5.18.019
37
37
  type: :runtime
38
38
  version_requirements: *id001
39
39
  description: " This project provides libraries of Capistrano tasks and extensions to \n remove the repetative manual work associated with installing services \n on linux servers.\n"