nesquena-cap-recipes 0.2.0 → 0.2.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.
data/README.textile CHANGED
@@ -29,31 +29,49 @@ h2. USAGE
29
29
 
30
30
  h3. Passenger
31
31
 
32
+ h4. Configuration
33
+
34
+ * ruby_lib_path - the path to the ruby lib folder [default: '/usr/lib/ruby']
35
+ * ruby_bin_path - the path to the ruby binary [default: '/usr/bin/ruby1.8']
36
+
37
+ h4. Tasks
38
+
32
39
  deploy
33
- :stop
34
40
  :start
41
+ :stop
35
42
  :restart
36
43
  :with_migrations
37
44
  :copy_config
38
45
  :tail
39
- :install
46
+ :install_passenger
40
47
  sweep
41
48
  :cache
42
49
  :log
43
50
 
44
51
  h3. Apache
45
52
 
46
- variables: apache_init_path
47
- tasks:
48
- apache
49
- :stop
50
- :start
51
- :restart
52
- :install
53
+ h4. Configuration
54
+
55
+ * apache_init_path - the path to the init.d apache file [default: '/etc/init.d/apache2']
56
+
57
+ h4. Tasks
58
+
59
+ apache
60
+ :stop
61
+ :start
62
+ :restart
63
+ :install
53
64
 
54
65
  h3. Backgroundrb
55
66
 
56
- variables: backgroundrb_log
67
+ h4. Configuration
68
+
69
+ * backgroundrb_log - the path to the backgroundrb log file
70
+ * backgroundrb_host - the background host machine ip [default: 'localhost']
71
+ * backgroundrb_env - the rails environment [default: 'production']
72
+
73
+ h4. Tasks
74
+
57
75
  tasks:
58
76
  backgroundrb
59
77
  :stop
@@ -64,7 +82,14 @@ h3. Backgroundrb
64
82
 
65
83
  h3. Juggernaut
66
84
 
67
- variables: juggernaut_config, juggernaut_pid, juggernaut_log
85
+ h4. Configuration
86
+
87
+ * juggernaut_config - path to juggernaut config file [default: "#{current_path}/config/juggernaut.yml"]
88
+ * juggernaut_pid - path to juggernaut pid file [default: "#{current_path}/tmp/pids/juggernaut.pid"]
89
+ * juggernaut_log - path to juggernaut log file [default: "#{current_path}/log/juggernaut.log"]
90
+
91
+ h4. Tasks
92
+
68
93
  tasks:
69
94
  juggernaut
70
95
  :start
@@ -1,4 +1,7 @@
1
1
  Capistrano::Configuration.instance(true).load do
2
+ set :juggernaut_config, "#{current_path}/config/juggernaut.yml"
3
+ set :juggernaut_pid, "#{current_path}/tmp/pids/juggernaut.pid"
4
+ set :juggernaut_log, "#{current_path}/log/juggernaut.log"
2
5
 
3
6
  namespace :juggernaut do
4
7
  # ===============================================================
@@ -1,4 +1,6 @@
1
1
  Capistrano::Configuration.instance(true).load do
2
+ set :ruby_lib_path, '/usr/lib/ruby'
3
+ set :ruby_bin_path, '/usr/bin/ruby1.8'
2
4
 
3
5
  # ===============================================================
4
6
  # DEPLOYMENT SCRIPTS
@@ -92,11 +94,11 @@ Capistrano::Configuration.instance(true).load do
92
94
  puts " passenger version #{version} configured"
93
95
 
94
96
  passenger_config =<<-EOF
95
- LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-#{version}/ext/apache2/mod_passenger.so
96
- PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-#{version}
97
+ LoadModule passenger_module #{ruby_lib_path}/gems/1.8/gems/passenger-#{version}/ext/apache2/mod_passenger.so
98
+ PassengerRoot #{ruby_lib_path}/gems/1.8/gems/passenger-#{version}
97
99
  PassengerRuby /usr/bin/ruby1.8
98
100
  EOF
99
-
101
+
100
102
  put passenger_config, "src/passenger"
101
103
  sudo "mv src/passenger /etc/apache2/conf.d/passenger"
102
104
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nesquena-cap-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Esquenazi