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 +1 -0
- data/lib/recipiez/version.rb +1 -1
- data/recipes/foreman.rb +4 -4
- metadata +4 -4
data/README.md
CHANGED
data/lib/recipiez/version.rb
CHANGED
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
|
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
|
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
|
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
|
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 3
|
9
|
+
- 0
|
10
|
+
version: 0.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alastair Brunton
|