ors 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ors/commands/update.rb +3 -2
- data/lib/ors/config.rb +2 -2
- data/lib/ors/helpers.rb +1 -1
- data/lib/ors/version.rb +1 -1
- metadata +3 -3
data/lib/ors/commands/update.rb
CHANGED
@@ -8,8 +8,9 @@ module ORS::Commands
|
|
8
8
|
execute_in_parallel(all_servers) {|server| update_code server }
|
9
9
|
execute_in_parallel(ruby_servers) {|server| bundle_install server }
|
10
10
|
|
11
|
-
execute_command cron_server
|
12
|
-
|
11
|
+
execute_command cron_server %(source ~/.rvm/scripts/rvm),
|
12
|
+
%(cd #{deploy_directory}),
|
13
|
+
%(if [ -f config/schedule.rb ]; then bundle exec whenever; fi)
|
13
14
|
end
|
14
15
|
|
15
16
|
end
|
data/lib/ors/config.rb
CHANGED
@@ -63,11 +63,11 @@ module ORS
|
|
63
63
|
extend ModuleMethods
|
64
64
|
|
65
65
|
def ruby_servers
|
66
|
-
(app_servers + [migration_server]).uniq
|
66
|
+
(app_servers + [console_server, cron_server, migration_server]).uniq
|
67
67
|
end
|
68
68
|
|
69
69
|
def all_servers
|
70
|
-
(web_servers +
|
70
|
+
(web_servers + ruby_servers).uniq
|
71
71
|
end
|
72
72
|
|
73
73
|
def deploy_directory
|
data/lib/ors/helpers.rb
CHANGED
data/lib/ors/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason Dew and John Long
|