capistrano-deploy-all 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +4 -0
  3. data/bin/deployment.rb +9 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: afe2b62b62625e82316e03a28e3e63bcb014f949
4
- data.tar.gz: ec17f85daec68c111d726bcad1cc52abd84e162d
2
+ SHA256:
3
+ metadata.gz: 6f7e700ad39fbf026ebf2ed755e8951b932459c5b41c57a45d48e73d56dab207
4
+ data.tar.gz: 4c7776a091f730b2f8714a4258c3a125fa04476b19ae0a9898b6245c1c073060
5
5
  SHA512:
6
- metadata.gz: 30aa3a2450a6a5d800faf6b9da1d084bb64fce6613975543f628aa5c75e457b775b99d01e3d29f2bd8aafe6865928b2efb7dbd0ec60757fd730a50f726088c69
7
- data.tar.gz: c2765afb5d4abf0cbc0a42a3c7234e9666b7008aebb5c848fb83e0482a4331eac24e24d1124f60bb0faa731940d4f9290b3fe1b5285439c0bd9dc13a0b2e393b
6
+ metadata.gz: 03646f5b0fb5d6c1944a5e74490f8074ebdc63b2a5a00cf9d7004130abff3e21aaa97448ce1f97b29e9f7cfd03c5f512273f37de46d773ddfd8460fe36c9f488
7
+ data.tar.gz: d7212fe30a7bc39c2fcb51af4b744552a1437ec47c4851b32aad82b3d1a36e77f626b50d0c65d75ea699001738b8d20e020e811c542a67167fc8acf234959bab
data/README.md CHANGED
@@ -38,3 +38,7 @@ bundle binstubs capistrano-deploy-all
38
38
  This provides the executables in the `bin` directory of the project:
39
39
  - `bin/deploy_all`
40
40
  - `bin/rake_all`
41
+
42
+ ## Exclude an environment
43
+ You can exclude one or multiple environments by adding them to a file called `exclude_list` in `/config/deploy/` folder.
44
+ Each environment should be in a separate line.
@@ -3,7 +3,7 @@ module Deployment
3
3
  @deployments ||= [].tap do |deployments|
4
4
  Dir[File.join("config", "deploy", "*.rb")].each do |file|
5
5
  deployment = file.split("/").last[0..-4]
6
- next if deployment == "deployment"
6
+ next if deployment == "deployment" || exclude_list.include?(deployment)
7
7
  puts "Include #{deployment}? (Y/n): "
8
8
  response = gets.strip
9
9
  if response.empty? || response.downcase == "y"
@@ -12,4 +12,12 @@ module Deployment
12
12
  end
13
13
  end
14
14
  end
15
+
16
+ def exclude_list
17
+ @exclude_list ||= [].tap do |exclude_list|
18
+ exclude_file = File.join("config", "deploy", "exclude_list")
19
+ File.readlines(exclude_file).each { |line| exclude_list << line.strip } if File.exist?(exclude_file)
20
+ exclude_list.reject! { |r| r.empty? }
21
+ end
22
+ end
15
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-deploy-all
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arturo Herrero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-20 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -41,7 +41,7 @@ files:
41
41
  - lib/capistrano-deploy-all/tasks.rb
42
42
  homepage: https://github.com/mydrive/capistrano-deploy-all
43
43
  licenses:
44
- - BSD 2-clause
44
+ - BSD-2-Clause
45
45
  metadata: {}
46
46
  post_install_message:
47
47
  rdoc_options: []
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  version: '0'
60
60
  requirements: []
61
61
  rubyforge_project:
62
- rubygems_version: 2.4.5.2
62
+ rubygems_version: 2.7.3
63
63
  signing_key:
64
64
  specification_version: 4
65
65
  summary: Deploy a service or run a Rake task against all environments