capistrano_multiconfig_parallel 2.0.0.rc6 → 2.0.0.rc7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5dadffb57193ddb22074553dd8b3919b46afcf94
4
- data.tar.gz: e62457b33b313e3d257091d495539f78ba423978
3
+ metadata.gz: e3f38d6c09a1397739ef004e8ecb305edafc3059
4
+ data.tar.gz: b669bdae1be2f8401f55be97e7f313cb5e9f99fc
5
5
  SHA512:
6
- metadata.gz: 8ce6f36f9b11d35049d0d28d4f74e694681c4c3955859d3ac1c086ba3842523106cbe52d95583edc7edf1040d22d83743147d78b391a0db546f6ba8abeb26b1d
7
- data.tar.gz: 9eea2058c93c23426b20edce3607a443a28cc4c72e71eae7f2bac89aa280f2976823324588d601b88e02fcd5f83367244f5aa09403e43a8ba74d1784d7ce9940
6
+ metadata.gz: 4364e4e8e830161f124b9d6447005a333bfac1506fbb04f12d00ed2ee7378016d3c096be9c08c61f80094490dfa33f05b8f8e8fbd12b09af90771312ccf8e4b3
7
+ data.tar.gz: 75576a3bbe566a04994a6b44d353cb2c69d3679a7935919f522e4277020863a3df16541a140f8c42407f41f050b00aa7cc52cfcdeb891da02e845420ff897de9
data/README.md CHANGED
@@ -24,8 +24,9 @@ NEW Improvements started in version 2.0.0.alpha ( currently gem is in a release
24
24
  - You can now deploy applications from anywhere on your computer without having to add this gem to the Gemfile, however you need to add the [capistrano_sentinel](https://github.com/bogdanRada/capistrano_sentinel) gem to your Gemfile, if you want to use this .
25
25
  - And only create anywhere on your computer a YAML file as described in section **[2.2) Deploying multiple applications from a central location](#22-deploying-multiple-applications-from-a-central-location)**
26
26
  - If you don't add the **capistrano_sentinel** to each of your applications, the executable of this gem will automatically create a new file "Gemfile.multi_cap" in the root of each of the applications that you are deploying, where the [capistrano_sentinel](https://github.com/bogdanRada/capistrano_sentinel) gem will be included and will use that Gemfile when doing deploys.
27
- - The Capfile file of each of the applications that you are deploying will also be automatically changed to require [capistrano_sentinel](https://github.com/bogdanRada/capistrano_sentinel) if you haven't done so yet.
28
- - The changes to Capfile will be automatically reverted when the command finishes ( with success or error ) if the [capistrano_sentinel](https://github.com/bogdanRada/capistrano_sentinel) gem is not part of your Gemfile
27
+ - The Capfile file of each of the applications that you are deploying will also be automatically changed to require [capistrano_sentinel](https://github.com/bogdanRada/capistrano_sentinel) if you haven't done so yet if the gem is part of the Gemfile, but was not required.
28
+ - If the **capistrano_sentinel** gem is not part of the Gemfile, a new file will be created "Capfile.multi_cap" in order to require the gem upon execution of jobs.
29
+ - When the command will finish , the files created will be removed.
29
30
  - If you are using RVM and there is a .rvmrc file in your project root directory and bash is available , the script will use bash emulator in order to properly load RVM gemsets because .rvmrc files need trusting
30
31
  - **Dont use BUNDLE EXEC command when running the executable for this gem unless you are using version 1 or this gem is part of the Gemfile of the application you are using. Otherwise just use the `multi_cap` executable without any prefix ( Unless this gem is part of your gemfile, in which case the BUNDLE EXEC prefix is needed )**
31
32
 
@@ -76,7 +77,7 @@ Add the following to your Capfile after requiring **capistrano** and **capistran
76
77
  Install locally on your system the capistrano_multiconfig_parallel gem using this command :
77
78
 
78
79
  ```ruby
79
- gem install capistrano_multiconfig_parallel -v 2.0.0.rc2
80
+ gem install capistrano_multiconfig_parallel -v 2.0.0.rc6
80
81
  ```
81
82
 
82
83
  Please read [Release Details](https://github.com/bogdanRada/capistrano_multiconfig_parallel/releases) if you are upgrading. We break backward compatibility between large ticks but you can expect it to be specified at release notes.
@@ -88,6 +89,7 @@ Default Configuration:
88
89
  ---
89
90
  multi_debug: true
90
91
  multi_secvential: false
92
+ check_app_bundler_dependencies: false
91
93
  websocket_server:
92
94
  enable_debug: false
93
95
  adapter: ''
@@ -119,6 +121,10 @@ Available command line options when executing a command
119
121
 
120
122
  - If parallel executing does not work for you, you can use this option so that each process is executed normally and ouputted to the screen. However this means that all other tasks will have to wait for each other to finish before starting
121
123
 
124
+ - --check_app_bundler_dependencies
125
+
126
+ - if option is present and has value TRUE , will check the application bundler dependecies are satisfied before delegating the job to the actor that executes the capistrano action
127
+
122
128
  - --websocket_server.enable_debug
123
129
 
124
130
  - if option is present and has value TRUE, will enable debugging of websocket communication between the workers
data/V1_README.md CHANGED
@@ -94,7 +94,6 @@ Default Configuration:
94
94
  ---
95
95
  multi_debug: true
96
96
  multi_secvential: false
97
- check_app_bundler_dependencies: false
98
97
  websocket_server:
99
98
  enable_debug: false
100
99
  adapter: ''
@@ -126,10 +125,6 @@ Available command line options when executing a command
126
125
 
127
126
  - If parallel executing does not work for you, you can use this option so that each process is executed normally and ouputted to the screen. However this means that all other tasks will have to wait for each other to finish before starting
128
127
 
129
- - --check_app_bundler_dependencies
130
-
131
- - if option is present and has value TRUE , will check the application bundler dependecies are satisfied before delegating the job to the actor that executes the capistrano action -
132
-
133
128
  - --websocket_server.enable_debug
134
129
 
135
130
  - if option is present and has value TRUE, will enable debugging of websocket communication between the workers
@@ -129,7 +129,7 @@ module CapistranoMulticonfigParallel
129
129
 
130
130
  def mark_for_dispatching_new_job
131
131
  return if rolling_back?
132
- will_dispatch_new_job = new_jobs_dispatched.size + 1
132
+ self.will_dispatch_new_job = new_jobs_dispatched.size + 1
133
133
  end
134
134
 
135
135
  def marked_for_dispatching_new_job?
@@ -238,7 +238,7 @@ module CapistranoMulticonfigParallel
238
238
  prepare_application_for_deployment
239
239
  # config_flags = CapistranoMulticonfigParallel.configuration_flags.merge("capistrano_version": job_capistrano_version)
240
240
  environment_options = setup_command_line.join(' ')
241
- command = "#{fetch_bundler_check_command(@job_final_gemfile)} && WEBSOCKET_LOGGING=#{true} LOG_FILE=#{websocket_config.fetch('log_file_path', nil)} #{bundle_gemfile_env(@job_final_gemfile)} bundle exec cap #{job_stage} #{capistrano_action} #{environment_options}"
241
+ command = "#{fetch_bundler_check_command(@job_final_gemfile)} && WEBSOCKET_LOGGING=#{debug_websocket?} LOG_FILE=#{websocket_config.fetch('log_file_path', nil)} #{bundle_gemfile_env(@job_final_gemfile)} bundle exec cap #{job_stage} #{capistrano_action} #{environment_options}"
242
242
 
243
243
  if @job_final_capfile != job_capfile
244
244
  command += " -f #{@job_final_capfile}"
@@ -10,7 +10,7 @@ module CapistranoMulticonfigParallel
10
10
  MAJOR = 2
11
11
  MINOR = 0
12
12
  TINY = 0
13
- PRE = 'rc6'
13
+ PRE = 'rc7'
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_multiconfig_parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc6
4
+ version: 2.0.0.rc7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada