recipiez 0.2.14 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -12,6 +12,7 @@ A collection of capistrano recipes for doing a whole host of things to servers.
12
12
  * Php Vhost
13
13
  * Thin Setup
14
14
  * Node js deployment
15
+ * Foreman Upstart Functionality
15
16
 
16
17
  ## Installation
17
18
 
@@ -1,3 +1,3 @@
1
1
  module Recipiez
2
- VERSION = '0.2.14'
2
+ VERSION = '0.3.0'
3
3
  end
data/recipes/foreman.rb CHANGED
@@ -2,22 +2,22 @@ Capistrano::Configuration.instance(true).load do
2
2
  namespace :foreman do
3
3
  desc "Export the Procfile to Ubuntu's upstart scripts"
4
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"
5
+ run "cd #{current_path} && sudo bundle exec foreman export upstart /etc/init -a #{application} -u #{user} -l #{shared_path}/log"
6
6
  end
7
7
 
8
8
  desc "Start the application services"
9
9
  task :start, roles: :app do
10
- sudo "service sites/#{application} start"
10
+ sudo "service #{application} start"
11
11
  end
12
12
 
13
13
  desc "Stop the application services"
14
14
  task :stop, roles: :app do
15
- sudo "service sites/#{application} stop"
15
+ sudo "service #{application} stop"
16
16
  end
17
17
 
18
18
  desc "Restart the application services"
19
19
  task :restart, roles: :app do
20
- run "sudo service sites/#{application} start || sudo service sites/#{application} restart"
20
+ run "sudo service #{application} start || sudo service #{application} restart"
21
21
  end
22
22
  end
23
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: 11
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 14
10
- version: 0.2.14
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alastair Brunton