ors 0.1.5 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- %(cd #{deploy_directory}),
13
- %(if [ -f config/schedule.rb ]; then bundle exec whenever; fi)
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
@@ -1,3 +1,3 @@
1
1
  module ORS
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -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: 17
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Dew and John Long