recipiez 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/recipiez/version.rb +1 -1
- data/recipes/foreman.rb +4 -4
- metadata +3 -3
data/lib/recipiez/version.rb
CHANGED
data/recipes/foreman.rb
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
Capistrano::Configuration.instance(true).load do
|
2
2
|
namespace :foreman do
|
3
3
|
desc "Export the Procfile to Ubuntu's upstart scripts"
|
4
|
-
task :export, roles
|
4
|
+
task :export, roles => :app do
|
5
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
|
-
task :start, roles
|
9
|
+
task :start, roles => :app do
|
10
10
|
sudo "service #{application} start"
|
11
11
|
end
|
12
12
|
|
13
13
|
desc "Stop the application services"
|
14
|
-
task :stop, roles
|
14
|
+
task :stop, roles => :app do
|
15
15
|
sudo "service #{application} stop"
|
16
16
|
end
|
17
17
|
|
18
18
|
desc "Restart the application services"
|
19
|
-
task :restart, roles
|
19
|
+
task :restart, roles => :app do
|
20
20
|
run "sudo service #{application} start || sudo service #{application} restart"
|
21
21
|
end
|
22
22
|
|
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: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alastair Brunton
|