ors 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/ors/commands/update.rb +3 -3
- data/lib/ors/version.rb +1 -1
- data/spec/ors/commands/update_spec.rb +1 -1
- metadata +3 -3
data/lib/ors/commands/update.rb
CHANGED
|
@@ -8,9 +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 %(source ~/.rvm/scripts/rvm),
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
execute_command cron_server, %(source ~/.rvm/scripts/rvm),
|
|
12
|
+
%(cd #{deploy_directory}),
|
|
13
|
+
%(if [ -f config/schedule.rb ]; then bundle exec whenever --update-crontab --set environment=#{environment} -i #{name}_#{environment}; fi)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
end
|
data/lib/ors/version.rb
CHANGED
|
@@ -11,7 +11,7 @@ describe ORS::Commands::Update do
|
|
|
11
11
|
mock(subject).info /updating/
|
|
12
12
|
mock(subject).execute_in_parallel(:all_servers)
|
|
13
13
|
mock(subject).execute_in_parallel(:ruby_servers)
|
|
14
|
-
mock(subject).execute_command(:cron_server, is_a(String), is_a(String))
|
|
14
|
+
mock(subject).execute_command(:cron_server, is_a(String), is_a(String), is_a(String))
|
|
15
15
|
|
|
16
16
|
subject.execute
|
|
17
17
|
end
|
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: 21
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 7
|
|
10
|
+
version: 0.1.7
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Jason Dew and John Long
|