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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3f38d6c09a1397739ef004e8ecb305edafc3059
|
4
|
+
data.tar.gz: b669bdae1be2f8401f55be97e7f313cb5e9f99fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
-
|
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.
|
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=#{
|
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}"
|