cap_blue_green_deploy 1.1.0 → 1.1.1

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: 8d0abc2d30a99d73e2f5dc1dc5af4081f6d01ad5
4
- data.tar.gz: 9fc38baddcc1e6e35d5f22ff5b949bcee25badf2
3
+ metadata.gz: 3e3e1744c0fc7c61f47d25e238b02797aae91182
4
+ data.tar.gz: 56d05bc64558c69179dda6b5c4cfd37190c62c56
5
5
  SHA512:
6
- metadata.gz: 8342b6167486f372e5773105043f1a7e8743922320cfd3050192d967228bc08c09b36512983dee4cb1e28e8e4f6e096b98e3e77a06160ea552e0dda912092c58
7
- data.tar.gz: 761b01ad9ea6d12bb1e2f48e3ef718c66e79c6a2d63a1feaa6626d5ac8d400994cfafbaaa7b954d3b6f64242879c794281ddeade969f531a6e662257a90dbc3a
6
+ metadata.gz: 8986ae6c060a1e08ce779bed6c1baea3a16ea9da7b3f1970d6beb9d614be87a58f3ca778365d7de93f399a70aba236674d45c58ca0ec228f7e11808ae60e81c1
7
+ data.tar.gz: 1e2af67c9ddf389db9a747ff0c2b073c7ec5648387d8b370edf70298ef5a3b51c3c573f0c5f351537dc421ef61867634da46e5cd2ec03e99c537d99b0631519a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.1
4
+
5
+ - Cleanup the gem package, removing docs file.
6
+
3
7
  ## 1.1.0
4
8
 
5
9
  - Changing custom variables name for live and previous dir
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cap_blue_green_deploy (1.1.0)
4
+ cap_blue_green_deploy (1.1.1)
5
5
  capistrano (>= 2.0.0, < 3.0.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -11,9 +11,9 @@ Learn more about
11
11
 
12
12
  **Cap Blue Green Deployment** is a non canonical Blue Green solution, based on symlinks. Instead of having **blue** and **green**, we have **pre** and **live**. Pre is always validation environment and live it's production environment.
13
13
 
14
- ![architecture](docs/architecture.png?a)
14
+ ![architecture](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/architecture.png)
15
15
 
16
- You can do as many deploys you need to **pre** without affecting the live env. Changing symlinks you can easily put your code from validation to production environment.
16
+ You can do as many deploys as you need to **pre** without affecting your **live** env. Changing symlinks you can easily put your code from validation to production environment.
17
17
 
18
18
  ## Prerequisite
19
19
 
@@ -42,32 +42,26 @@ And then, require the gem script under your capistrano configuration file (Capfi
42
42
  ### Understanding the deploy folder:
43
43
 
44
44
  - **current**: Pre environment. Used to test and validate your application.
45
- - **current_live**: Live environment. You production access goes here. *This dir name can be customized in custom variables, see below*
45
+ - **current_live**: Live environment. Your production access goes here. *This dir name can be customized in custom variables, see below*
46
46
  - **previous_live**: Last live release. Used to do the rollback action of current_live. *This dir name can be customized in custom variables, see below*
47
47
 
48
48
  ### Deploy Commands:
49
49
 
50
50
  * **Going to Pre** `cap deploy:blue_green:pre`
51
51
 
52
- This command is an alias for `cap deploy` default task. It will run the deploy process and will create the `current` release
52
+ This command is an alias for `cap deploy` default task. It will run the deploy process and create the `current` release
53
53
 
54
54
  * **Going to Live** `cap deploy:blue_green:live`
55
55
 
56
- This command will change symlinks of `current_live` dir to keep the the same release path of `current` dir. And also create the `previous_live` symlink to track the last current live release used.
56
+ This command will change symlinks of `current_live` dir to use the same release path of `current` dir. And also create the `previous_live` symlink to track the last current live release used.
57
57
 
58
- **More explanations**
59
-
60
- If `current_live` already exists, the `previous_live` dir will be created/updated, copying the same symlink of `current live` release, to keep traking the last valid release.
61
-
62
- Finally, the command will create/update the `current_live` symlink, copying the same symlink of `current` release.
63
-
64
- * **Rollbacking** `cap deploy:blue_green:rollback`
58
+ * **Rolling back** `cap deploy:blue_green:rollback`
65
59
 
66
60
  This command will change the `current_live` symlink to use the same destination of `previous_live` symlink.
67
61
 
68
62
  * **Cleanup** `cap deploy:blue_green:cleanup`
69
63
 
70
- This is the same behavior of the default capistrano cleanup `deploy:cleanup`, but the `current_live` and `previous_live` releases will be preserved and not removed.
64
+ This is the same behavior of the default capistrano cleanup `deploy:cleanup`, but the `current`, `current_live` and `previous_live` releases will be preserved and not removed.
71
65
 
72
66
  **This lib automatically rewrite the default deploy:cleanup to use this new cleanup function.**
73
67
 
@@ -75,7 +69,7 @@ And then, require the gem script under your capistrano configuration file (Capfi
75
69
 
76
70
  * **Custom Variables**
77
71
 
78
- You can change the default value setting new variable in your capistrano file. The default values is:
72
+ You can change the default values by overwriting them in your capistrano file. The default values are:
79
73
  - keep_releases: 5
80
74
  - blue_green_live_dir: "current_live"
81
75
  - blue_green_previous_dir: "previous_live"
@@ -87,40 +81,45 @@ And then, require the gem script under your capistrano configuration file (Capfi
87
81
  - `set :blue_green_previous_dir, "previous_live"`
88
82
 
89
83
  **1. Starting with clean server**
90
- ![Clean server](docs/1.server_clean.png)
84
+ ![Clean server](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/1.server_clean.png)
91
85
 
92
86
  **2. Running `cap deploy:setup` to prepare the server**
93
- ![Deploy setup](docs/2.deploy_setup.png)
87
+ ![Deploy setup](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/2.deploy_setup.png)
94
88
 
95
89
  **3. Running `cap deploy` three times to populate the release folder (cleanup code removes one old release)**
96
- ![Deploy](docs/3.1.releases.three_deploys.png)
97
- ![Deploy](docs/3.2.three_deploys.png)
90
+ ![Deploy](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/3.1.releases.three_deploys.png)
91
+ ![Deploy](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/3.2.three_deploys.png)
98
92
 
99
93
  **4. Going to live `cap deploy:blue_green:live` (current_live dir will be created. No changes in releases dir)**
100
- ![Blue Green Live](docs/4.1.releases.deploy_blue_green_live.png)
101
- ![Blue Green Live](docs/4.2.deploy_blue_green_live.png)
94
+ ![Blue Green Live](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/4.1.releases.deploy_blue_green_live.png)
95
+ ![Blue Green Live](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/4.2.deploy_blue_green_live.png)
102
96
 
103
97
  **5. Running two more deploy with `cap deploy` (current_live will not change. Cleanup remove one old release.)**
104
- ![Deploy](docs/5.1.releases.two_deploy.png)
105
- ![Deploy](docs/5.2.two_deploy.png)
98
+ ![Deploy](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/5.1.releases.two_deploy.png)
99
+ ![Deploy](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/5.2.two_deploy.png)
106
100
 
107
101
  **6. Going to live again with `cap deploy:blue_green:live` (At this time, previous_live will be created, targeting the current_live release before change it. No changes in releases dir)**
108
- ![Blue Green Live](docs/6.1.releases.deploy_blue_green_live.png)
109
- ![Blue Green Live](docs/6.2.deploy_blue_green_live.png)
102
+ ![Blue Green Live](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/6.1.releases.deploy_blue_green_live.png)
103
+ ![Blue Green Live](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/6.2.deploy_blue_green_live.png)
110
104
 
111
105
  **7. Something goes wrong... Rollbacking with `cap deploy:blue_green:rollback` (The current_live will change to target the same release of previous_live. No changes in releases dir)**
112
- ![Blue Green Rollback](docs/7.1.releases.deploy_blue_green_rollback.png)
113
- ![Blue Green Rollback](docs/7.2.deploy_blue_green_rollback.png)
106
+ ![Blue Green Rollback](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/7.1.releases.deploy_blue_green_rollback.png)
107
+ ![Blue Green Rollback](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/7.2.deploy_blue_green_rollback.png)
114
108
 
115
109
  **8. Running one more deploy with `cap deploy` (current_live and previous_live will not change. Cleanup remove one old release.)***
116
- ![Deploy](docs/8.1.releases.one_deploy.png)
117
- ![Deploy](docs/8.2.one_deploy.png)
110
+ ![Deploy](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/8.1.releases.one_deploy.png)
111
+ ![Deploy](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/8.2.one_deploy.png)
118
112
 
119
113
  **9. Going to live again with `cap deploy:blue_green:live`**
120
- ![Deploy](docs/9.1.deploy_blue_green_live.png)
114
+ ![Deploy](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/9.1.deploy_blue_green_live.png)
121
115
 
122
116
  **Changing current_live and previous_live variables to use custom names (custom_live_path, custom_rollback_path)**
123
- ![Custom names](docs/custom_variables.png)
117
+ ![Custom names](https://raw.githubusercontent.com/rafaelbiriba/cap_blue_green_deploy/master/docs/custom_variables.png)
118
+
119
+ ## Contributors
120
+
121
+ - [Emerson Macedo](https://github.com/emerleite)
122
+ - [Celio Latorraca](https://github.com/celiofonseca)
124
123
 
125
124
  ## Contributing
126
125
 
@@ -10,10 +10,10 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["biribarj@gmail.com"]
11
11
  spec.description = "Blue-Green deployment solution for Capistrano, using symbolic links between releases."
12
12
  spec.summary = "Blue-Green deployment solution for Capistrano"
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/rafaelbiriba/cap_blue_green_deploy"
14
14
  spec.license = "MIT"
15
15
 
16
- spec.files = `git ls-files`.split($/)
16
+ spec.files = `git ls-files`.split($/).reject{ |f| f =~ /docs/ }
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
@@ -1,3 +1,3 @@
1
1
  module CapBlueGreenDeploy
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap_blue_green_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Biriba
@@ -119,23 +119,6 @@ files:
119
119
  - README.md
120
120
  - Rakefile
121
121
  - cap_blue_green_deploy.gemspec
122
- - docs/1.server_clean.png
123
- - docs/2.deploy_setup.png
124
- - docs/3.1.releases.three_deploys.png
125
- - docs/3.2.three_deploys.png
126
- - docs/4.1.releases.deploy_blue_green_live.png
127
- - docs/4.2.deploy_blue_green_live.png
128
- - docs/5.1.releases.two_deploy.png
129
- - docs/5.2.two_deploy.png
130
- - docs/6.1.releases.deploy_blue_green_live.png
131
- - docs/6.2.deploy_blue_green_live.png
132
- - docs/7.1.releases.deploy_blue_green_rollback.png
133
- - docs/7.2.deploy_blue_green_rollback.png
134
- - docs/8.1.releases.one_deploy.png
135
- - docs/8.2.one_deploy.png
136
- - docs/9.1.deploy_blue_green_live.png
137
- - docs/architecture.png
138
- - docs/custom_variables.png
139
122
  - lib/cap_blue_green_deploy.rb
140
123
  - lib/cap_blue_green_deploy/init.rb
141
124
  - lib/cap_blue_green_deploy/tasks.rb
@@ -153,7 +136,7 @@ files:
153
136
  - spec/lib/cap_blue_green_deploy/tasks/rollback_spec.rb
154
137
  - spec/lib/cap_blue_green_deploy/tasks_spec.rb
155
138
  - spec/spec_helper.rb
156
- homepage: ''
139
+ homepage: https://github.com/rafaelbiriba/cap_blue_green_deploy
157
140
  licenses:
158
141
  - MIT
159
142
  metadata: {}
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file