recipiez 0.2.13 → 0.2.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Recipiez
2
- VERSION = '0.2.13'
2
+ VERSION = '0.2.14'
3
3
  end
@@ -0,0 +1,23 @@
1
+ Capistrano::Configuration.instance(true).load do
2
+ namespace :foreman do
3
+ desc "Export the Procfile to Ubuntu's upstart scripts"
4
+ task :export, roles: :app do
5
+ run "cd #{current_path} && sudo bundle exec foreman export upstart /etc/init -a sites/#{application} -u #{user} -l #{shared_path}/log"
6
+ end
7
+
8
+ desc "Start the application services"
9
+ task :start, roles: :app do
10
+ sudo "service sites/#{application} start"
11
+ end
12
+
13
+ desc "Stop the application services"
14
+ task :stop, roles: :app do
15
+ sudo "service sites/#{application} stop"
16
+ end
17
+
18
+ desc "Restart the application services"
19
+ task :restart, roles: :app do
20
+ run "sudo service sites/#{application} start || sudo service sites/#{application} restart"
21
+ end
22
+ end
23
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recipiez
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 13
10
- version: 0.2.13
9
+ - 14
10
+ version: 0.2.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alastair Brunton
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-22 00:00:00 +02:00
18
+ date: 2012-08-20 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -67,6 +67,7 @@ files:
67
67
  - recipes/apache.rb
68
68
  - recipes/chef.rb
69
69
  - recipes/deployment_recipiez.rb
70
+ - recipes/foreman.rb
70
71
  - recipes/logrotate.rb
71
72
  - recipes/monit.rb
72
73
  - recipes/nginx.rb