colorful-mina 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +21 -0
  5. data/CONTRIBUTING.md +124 -0
  6. data/Gemfile +10 -0
  7. data/HISTORY.md +348 -0
  8. data/LICENSE +23 -0
  9. data/Makefile +29 -0
  10. data/Notes.md +70 -0
  11. data/README.md +1015 -0
  12. data/Rakefile +20 -0
  13. data/bin/mina +65 -0
  14. data/data/deploy.rb +80 -0
  15. data/data/deploy.sh.erb +106 -0
  16. data/lib/mina.rb +23 -0
  17. data/lib/mina/bundler.rb +49 -0
  18. data/lib/mina/chruby.rb +49 -0
  19. data/lib/mina/default.rb +145 -0
  20. data/lib/mina/deploy.rb +138 -0
  21. data/lib/mina/deploy_helpers.rb +34 -0
  22. data/lib/mina/exec_helpers.rb +111 -0
  23. data/lib/mina/foreman.rb +82 -0
  24. data/lib/mina/git.rb +62 -0
  25. data/lib/mina/helpers.rb +386 -0
  26. data/lib/mina/output_helpers.rb +95 -0
  27. data/lib/mina/rails.rb +206 -0
  28. data/lib/mina/rake.rb +9 -0
  29. data/lib/mina/rbenv.rb +47 -0
  30. data/lib/mina/rvm.rb +88 -0
  31. data/lib/mina/settings.rb +32 -0
  32. data/lib/mina/ssh_helpers.rb +123 -0
  33. data/lib/mina/tools.rb +20 -0
  34. data/lib/mina/version.rb +5 -0
  35. data/lib/mina/whenever.rb +27 -0
  36. data/manual/index.md +15 -0
  37. data/manual/modules.md +2 -0
  38. data/mina.gemspec +17 -0
  39. data/spec/command_helper.rb +52 -0
  40. data/spec/commands/cleanup_spec.rb +16 -0
  41. data/spec/commands/command_spec.rb +71 -0
  42. data/spec/commands/custom_config_spec.rb +20 -0
  43. data/spec/commands/deploy_spec.rb +36 -0
  44. data/spec/commands/outside_project_spec.rb +35 -0
  45. data/spec/commands/real_deploy_spec.rb +53 -0
  46. data/spec/commands/ssh_spec.rb +14 -0
  47. data/spec/commands/verbose_spec.rb +21 -0
  48. data/spec/dsl/invoke_spec.rb +48 -0
  49. data/spec/dsl/queue_spec.rb +49 -0
  50. data/spec/dsl/settings_in_rake_spec.rb +39 -0
  51. data/spec/dsl/settings_spec.rb +61 -0
  52. data/spec/dsl/to_spec.rb +20 -0
  53. data/spec/fixtures/custom_file_env/custom_deploy.rb +15 -0
  54. data/spec/fixtures/empty_env/config/deploy.rb +15 -0
  55. data/spec/helpers/exec_helper_spec.rb +19 -0
  56. data/spec/helpers/output_helper_spec.rb +24 -0
  57. data/spec/spec_helper.rb +27 -0
  58. data/support/Readme-footer.md +32 -0
  59. data/support/Readme-header.md +16 -0
  60. data/support/guide.md +297 -0
  61. data/support/index.html +53 -0
  62. data/support/to_md.rb +11 -0
  63. data/test_env/config/deploy.rb +69 -0
  64. metadata +150 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f5bc4b837dfb4df7494f3a8480751884f06d87f2
4
+ data.tar.gz: 14b5a59a7b5389086fb7265e59034c6508830846
5
+ SHA512:
6
+ metadata.gz: 7d89521c45d8503462b70a828c18826b4737a11fcc45bcbe68ddf2c2efcb154da874d1eef6dd3457419bd3fff5b9150e3fbe129ad21b9cf59cc5d2d56544096b
7
+ data.tar.gz: 40da430416d53216795d54be74e31b47ca7e3cbb665de1d123d5cec5bdc779936bc6f20e5396a936f6e79968eb3c4bfe66fed5c2857587152f7e8fb7dad1920a
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ doc
2
+ test_env/deploy
3
+ .rvmrc
4
+ .ruby-gemset
5
+ .ruby-version
6
+ Gemfile.lock
7
+ pkg/
8
+ docs
9
+ support/helpers.md
10
+ support/modules.md
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ -c --order rand -t ~ssh
data/.travis.yml ADDED
@@ -0,0 +1,21 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - 2.1.2
7
+ - rbx-2
8
+ - jruby
9
+ env:
10
+ - "rake=0.8"
11
+ - "rake=0.9"
12
+ - "rake=10"
13
+ # before_script:
14
+ # - cat ~/.ssh/*.pub >> ~/.ssh/authorized_keys
15
+ # - ssh -o StrictHostKeyChecking=no localhost "exit"
16
+ script: "bundle exec rspec"
17
+ notifications:
18
+ email:
19
+ - dropbox+travis@ricostacruz.com
20
+ - dario@uxtemple.com
21
+ - gabrijel.skoro@infinum.hr
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,124 @@
1
+ # Contributing to Mina
2
+
3
+ Want to get involved? Thanks! There are plenty of ways to help!
4
+
5
+ ## Reporting issues
6
+
7
+ A bug is a _demonstrable problem_ that is caused by the code in the
8
+ repository.
9
+
10
+ Please read the following guidelines before you [report an issue][issues]:
11
+
12
+ 1. **Use the GitHub issue search** — check if the issue has already been
13
+ reported. If it has been, please comment on the existing issue.
14
+
15
+ 2. **Check if the issue has been fixed** — the latest `master` or
16
+ development branch may already contain a fix.
17
+
18
+ 3. **Isolate the demonstrable problem** — make sure that the code in the
19
+ project's repository is _definitely_ responsible for the issue. Create a
20
+ [reduced test case](http://css-tricks.com/6263-reduced-test-cases/) - an
21
+ extremely simple and immediately viewable example of the issue.
22
+
23
+ Please try to be as detailed as possible in your report too. What is your
24
+ environment? What steps will reproduce the issue? What would you expect to be
25
+ the outcome? All these details will help people to assess and fix any potential
26
+ bugs.
27
+
28
+ ### Example of a good bug report:
29
+
30
+ > Short and descriptive title
31
+ >
32
+ > A summary of the issue and the OS environment in which it occurs. If
33
+ > suitable, include the steps required to reproduce the bug.
34
+ >
35
+ > 1. This is the first step
36
+ > 2. This is the second step
37
+ > 3. Further steps, etc.
38
+ >
39
+ > `<url>` (a link to the reduced test case)
40
+ >
41
+ > Any other information you want to share that is relevant to the issue being
42
+ > reported. This might include the lines of code that you have identified as
43
+ > causing the bug, and potential solutions (and your opinions on their
44
+ > merits).
45
+
46
+ A good bug report shouldn't leave people needing to chase you up to get further
47
+ information that is required to assess or fix the bug.
48
+
49
+ **[File a bug report][issues]**
50
+
51
+ ## Responding to issues
52
+
53
+ Feel free to respond to other people's issues! Some people may be reporting
54
+ issues that can easily be solved even without modification to the project's
55
+ code.
56
+
57
+ You can also help by verifying issues reported.
58
+
59
+ **[View issues][issues]**
60
+
61
+ ## The 'help wanted' tag
62
+
63
+ Some [issues] are tagged with the 'help wanted' tag. These issues often:
64
+
65
+ - are missing an actual implementation, or
66
+ - need people's help in verifying and replicating the issue, or
67
+ - need test cases.
68
+
69
+ If you would like to contribute code and don't have any specific issue you want
70
+ to fix, this would be a good place to start looking at!
71
+
72
+ **[View issues][issues]**
73
+
74
+ ## Pull requests
75
+
76
+ Good pull requests — patches, improvements, new features — are a fantastic
77
+ help. They should remain focused in scope and avoid containing unrelated
78
+ commits.
79
+
80
+ If your contribution involves a significant amount of work or substantial
81
+ changes to any part of the project, please open an issue to discuss it first.
82
+
83
+ Please follow this process; it's the best way to get your work included in the
84
+ project:
85
+
86
+ 1. [Fork](http://help.github.com/fork-a-repo/) the project.
87
+
88
+ 2. Clone your fork (`git clone
89
+ https://github.com/<your-username>/html5-boilerplate.git`).
90
+
91
+ 3. Add an `upstream` remote (`git remote add upstream
92
+ https://github.com/nadarei/mina.git`).
93
+
94
+ 4. Get the latest changes from upstream (e.g. `git pull upstream
95
+ <dev-branch>`).
96
+
97
+ 5. Create a new topic branch to contain your feature, change, or fix (`git
98
+ checkout -b <topic-branch-name>`).
99
+
100
+ 6. Make sure that your changes adhere to the current coding conventions used
101
+ throughout the project - indentation, accurate comments, etc. Please update
102
+ any documentation that is relevant to the change you are making.
103
+
104
+ 7. Commit your changes in logical chunks; use git's [interactive
105
+ rebase](https://help.github.com/articles/interactive-rebase) feature to tidy
106
+ up your commits before making them public. Please adhere to these [git commit
107
+ message
108
+ guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
109
+ or your pull request is unlikely be merged into the main project.
110
+
111
+ 8. Locally merge (or rebase) the upstream branch into your topic branch.
112
+
113
+ 9. Push your topic branch up to your fork (`git push origin
114
+ <topic-branch-name>`).
115
+
116
+ 10. [Open a Pull Request](http://help.github.com/send-pull-requests/) with a
117
+ clear title and description. Please mention which browsers you tested in.
118
+
119
+ ## Acknowledgements
120
+
121
+ This contributing guide has been adapted from [HTML5 boilerplate's guide][g].
122
+
123
+ [g]: https://github.com/h5bp/html5-boilerplate/blob/master/CONTRIBUTING.md
124
+ [issues]: https://github.com/nadarei/mina/issues/
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # Why use bundler?
2
+ # Well, not all development dependencies install on all rubies. Moreover, `gem
3
+ # install mina --development` doesn't work, as it will also try to install
4
+ # development dependencies of our dependencies, and those are not conflict free.
5
+ # So, here we are, `bundle install`.
6
+
7
+ source "https://rubygems.org"
8
+ gemspec
9
+
10
+ gem 'rake', "~> #{ENV['rake'] || "0.9"}.0"
data/HISTORY.md ADDED
@@ -0,0 +1,348 @@
1
+ ## v0.3.2 - unreleased
2
+
3
+ v0.3.1 - October 17, 2014
4
+ -------------------------
5
+
6
+ * Fix copy command for assets. (#150) [Joshua Dover]
7
+ * Add comment for system-wide RVM install. (#112) [Sam Qiu]
8
+ * Incorrect exit status if deploy fails (#95) [Alexander Borovsky]
9
+ * Bundler: Allow configuration of groups to be skipped during installation (#123) [Luis Lavena]
10
+ * Parse task string to reenable task (#189) [Pedro Chambino]
11
+ * Update Travis CI to test via Ruby 2.1.2. (#197) [Luciano Sousa]
12
+ * Add jRuby support by using threads instead of fork. (#147, #148) [Jan Berdajs]
13
+ * Add rescue for rubinius SignalException. (#204) [Qen]
14
+ * Using `bundle_bin` instead `bundle` in whenever tasks. (#195) [Maxim Dorofienko]
15
+ * Convert specs to RSpec expect syntax with transpec (#194) [Logan Hasson]
16
+ * Remove binstubs options from defaults (#219) [lucapette]
17
+ * Updated deploy.rb template to use shared_path (#235) [postmodern]
18
+ * Allow the foreman export format to be configurable (#232) [postmodern]
19
+ * fix: bin/mina exit_status -> exitstatus (#212) [Zhomart Mukhamejanov]
20
+ * Add foreman_location and foreman_sudo configs (#239) [Pedro Chambino]
21
+ * Check db/migrate/ instead of schema.rb (#177) [Charles Dale]
22
+ * Fix mina deploy --help, should not cause a deploy (#238)
23
+ * Fix git:clone on win7 x64 had error (#216)
24
+ * Add deploy:cleanup after deploy
25
+ * Prevent foreman export from expanding the current/ symlink (#241)
26
+ * Support pretty_system on ruby 1.8.7 (#237)
27
+ * Ruby 1.8.7 doesn't support empty symbols (#240)
28
+
29
+
30
+ [Joshua Dover]: https://github.com/gerfuls
31
+ [Sam Qiu]: https://github.com/samqiu
32
+ [Alexander Borovsky]: https://github.com/borovsky
33
+ [Luis Lavena]: https://github.com/luislavena
34
+ [Pedro Chambino]: https://github.com/PChambino
35
+ [Luciano Sousa]: https://github.com/lucianosousa
36
+ [Jan Berdajs]: https://github.com/mrbrdo
37
+ [Qen]: https://github.com/qen
38
+ [Maxim Dorofienko]: https://github.com/mdorfin
39
+ [Logan Hasson]: https://github.com/loganhasson
40
+ [lucapette]: https://github.com/lucapette
41
+ [postmodern]: https://github.com/postmodern
42
+ [Zhomart Mukhamejanov]: https://github.com/Zhomart
43
+ [Charles Dale]: https://github.com/chuckd
44
+
45
+ v0.3.0 - July 10, 2013
46
+ ----------------------
47
+
48
+ * **Stdin is now being passed, thereby making git prompts work.**
49
+ * Foreman: Add foreman support. (#71) [Dan Sosedoff]
50
+ * Foreman: Fix 'command not found' error. (#89, #101)
51
+ * Foreman: Fix forman stop. [Andrew Rosa]
52
+ * Fix `mina setup` showing an error. (#64) [Anthony Hristov]
53
+ * Fix "broken pipe" error after deploying. (#64) [Tomas Varneckas]
54
+ * Fix error regarding "open4" in Windows environments. (#58)
55
+ * Fix the default script's "touch tmp/restart.txt" to work for reliably. (#77)
56
+ [Eugene Diachkin]
57
+ * Fix errors that happen when the host string is frozen. [sonots]
58
+ * RVM: use 'rvm use --create'. (#81) [Marcos Beirigo]
59
+ * RVM: Add 'rvm:wrapper' task to create wrappers. (#81) [Marcos Beirigo]
60
+ * New helper method called 'capture' to capture SSH output. (#113) [Naoki
61
+ Ainoya]
62
+ * Fix encoding errors. (#68) [Faud Saud]
63
+
64
+ Special thanks to all the contributors who made this release happen.
65
+
66
+ https://github.com/mina-deploy/mina/compare/v0.2.1...v0.3.0
67
+
68
+ [sonots]: https://github.com/sonots
69
+ [Tomas Varneckas]: https://github.com/tomasv
70
+ [Anthony Hristov]: https://github.com/muxcmux
71
+ [Dan Sosedoff]: https://github.com/sosedoff
72
+ [Eugene Diachkin]: https://github.com/ineu
73
+ [Marcos Beirigo]: https://github.com/marcosbeirigo
74
+ [Andrew Rosa]: https://github.com/andrewhr
75
+ [Naoki Ainoya]: https://github.com/saketoba
76
+ [Faud Saud]: https://github.com/faudsaud
77
+
78
+ v0.2.1 - Sep 08, 2012
79
+ ---------------------
80
+
81
+ This release is to fix some issues that should've been cleaned up in the
82
+ previous release, but wasn't.
83
+
84
+ ### Fixed:
85
+ * **Fix SSH helpers giving a 'class required' error.**
86
+ * **Send stdout even in term_mode = :pretty mode.**
87
+ * Rbenv: Fix compatibility with Debian, Arch, Fedora. (#44)
88
+ * Supress the "--depth is ignored in local clones" warning. (#56)
89
+
90
+ ### Added:
91
+ * Add the `:ssh_options` setting. (#23)
92
+ * Add the `:forward_agent` setting. (#23)
93
+
94
+ ### Changed:
95
+ * Make the `:term_mode` setting accept strings, not just symbols. (eg: `set
96
+ :term_mode, 'exec'`)
97
+
98
+ v0.2.0 - Sep 08, 2012
99
+ ---------------------
100
+
101
+ This release had two pre releases:
102
+
103
+ * v0.2.0.pre2 (Aug 2, 2012)
104
+ * v0.1.3.pre1 (Jul 13, 2012)
105
+
106
+ ### Fixed:
107
+ * Allow changing `:term_mode` in the setup task. (#51, @alfuken)
108
+ * Prevent `git log` from using a pager. (#42, @tmak)
109
+ * `deploy:cleanup` can now be called in a deploy script. (#50, @dariocravero)
110
+ * Don't invoke bash anymore (!), assume that bash is the shell for the user.
111
+ Fixes Ubuntu 12, and many other things.
112
+ * Fixed `ssh(cmd, return: true)` that used to exit. (#53 from @jpascal)
113
+ * [pre2] Call ssh with no double use `-t` parameter.
114
+ * [pre2] Fix Ruby 1.8 compatibility.
115
+ * [pre2] Fix the "undefined method > for Process::Status" error.
116
+ * [pre2] Using `force_migrate=1` and `force_assets=1` to `rails:db_migrate`
117
+ and `rails:assets_precompile` now works well.
118
+ * [pre1] Respect the `bundle_bin` setting when doing `bundle exec` in Rails commands. (#29)
119
+ * [pre1] Doing `rails:assets_precompile` now properly skips asset compilation if not needed. (#25)
120
+
121
+ ### Added:
122
+ * __Added the 'queue!' helper.__
123
+ * Add support for __Whenever__. (#47, @jpascal)
124
+ * Add a new `:environment` task that gets loaded on setup/deploy.
125
+ * __Add explicit support for rbenv/rvm.__ (#5, #39)
126
+ * Implement :'rvm:use[...]'. (#5, #39)
127
+ * Implement :'rbenv:load'. (#5, #39)
128
+ * Revert `rails:optimize_for_3.2` from the pre2 release. (#32)
129
+ * [pre2] __Optimize git:clone by caching the repository.__ This way, updates are
130
+ faster because not the entire repo is cloned everytime. (#10)
131
+ * [pre2] __Show elapsed time that a deploy takes.__
132
+ * [pre2] __Display the git commit nicely when deploying.__
133
+ * [pre2] __Force quit when 2 `^C`s are pressed.__
134
+ * [pre2] New `die` helper.
135
+ * [pre2] New `report_time` helper.
136
+ * [pre2] New `to_directory` helper. (#35)
137
+ * [pre2] Put optional optimizations for Rails 3.2 asset pipeline. (#32) -- reverted
138
+ * Update sample deploy script:
139
+ - [pre2] Update default deploy.rb to note :branch.
140
+ - [pre2] Add `link_shared_paths` to the sample deploy script.
141
+ * [pre1] Doing `rails:db_migrate` now skips doing migrations if they're not needed. (#18)
142
+ * [pre1] Added the `mina console` command for Rails.
143
+ * [pre1] Make asset paths configurable using the `asset_paths` setting.
144
+
145
+ ### Changed:
146
+ * Force removal of shared path destinations before linking with
147
+ `deploy:link_shared_paths`. Fixes symlinking of `log/` in Rails projects.
148
+ * __Rails: speed up default asset compilation a bit by invoking
149
+ `assets:precompile` with `RAILS_GROUPS=assets`.__
150
+ * Add helpful error message when there is a problem with
151
+ deploy.rb or a custom Rakefile. (#37, @sge-jesse-adams)
152
+ * Update the default deploy.rb to add notes about 'mina setup' customizations.
153
+ * Make `mina run`, `mina rake`, `mina console` use the new `:environment` task.
154
+ * Allow calling `die` without arguments.
155
+ * [pre2] __Improve output of `mina init`.__
156
+ * [pre2] Prettier output for `mina setup`. Also, show a better error message for it.
157
+ * [pre1] Refactor pretty printing to be simpler, cleaner, and extensible.
158
+ * [pre1] Show prettier abort messages when ^C'd.
159
+
160
+ v0.1.2 - Jul 06, 2012
161
+ ---------------------
162
+
163
+ This release had two prereleases: v0.1.2.pre1 and v0.1.2.pre2.
164
+
165
+ ### Fixed:
166
+ * __Show stdout output properly on deploy.__
167
+ * 'mina rake' now works.
168
+ * [.pre2] __Fix `deploy:link_shared_paths` to use absolute paths.__
169
+ * [.pre2] Fix console logs for task init.
170
+ * [.pre1] __Fixed JRuby support.__
171
+ * [.pre1] __Respect .bashrc.__ (#5)
172
+
173
+ ### Added:
174
+ * [.pre2] Add `:bundle_bin` option.
175
+ * [.pre2] Add `:ssh` port option.
176
+
177
+ ### Changed: (v0.1.2)
178
+ * Refactor pretty printing to be simpler, cleaner, and extensible.
179
+ * Show prettier abort messages when ^C'd.
180
+ * Use the new error message format. (See lib/mina/output_helpers.rb)
181
+ * [.pre1] Implement `ssh("..", return: true)`.
182
+ * [.pre1] Rename `simulate_mode` to `simulate_mode?`. Same with `verbose_mode?`.
183
+ * [.pre1] Show the SSH command in the simulation output.
184
+
185
+ v0.1.1 - Jun 07, 2012
186
+ ---------------------
187
+
188
+ ### Added:
189
+ * Check for releases_path directory in deploy script.
190
+ * mina deploy:cleanup
191
+ * Support for -f option.
192
+
193
+ ### Changed:
194
+ * Gem description.
195
+
196
+ ### Fixed:
197
+ * deploy.rb template (domain, user, git:clone).
198
+ * Handle empty Git repository.
199
+ * Add pkg to gitignore.
200
+
201
+ v0.1.0 - Jun 06, 2012
202
+ ---------------------
203
+
204
+ Renamed to Mina from Van Helsing.
205
+
206
+
207
+ v0.0.1.pre7 - Jun 06, 2012
208
+ --------------------------
209
+
210
+ ### Added:
211
+ * __`vh rails[command]` and `vh rake[command]` tasks.__
212
+ * __Add `vh run`.__
213
+ * `-S` as an alias for `--simulate`.
214
+ * the `#set_default` helper.
215
+ * the `bundle_prefix` setting.
216
+ * New `term_mode` setting.
217
+
218
+ ### Changed:
219
+ * `--simulate` show things without the `ssh` command or shellescaping.
220
+
221
+ v0.0.1.pre6 - Jun 06, 2012
222
+ --------------------------
223
+
224
+ Thanks to @sosedoff for his contributions that made it to this release.
225
+
226
+ ### Added:
227
+ * __Rubinius support.__
228
+ * __Ruby 1.8 support.__
229
+ * Prelimenary JRuby support.
230
+ * MIT license.
231
+ * Highlight errors as red in deploy.
232
+ * Use popen4 instead of popen3. Support JRuby via IO.popen4.
233
+
234
+ ### Changed:
235
+ * __Rename `to :restart` to `to :launch`.__
236
+ * __Make deploys fail if renaming the build (eg, not setup properly) fails.__
237
+
238
+ ### Tests:
239
+ * Added `rake spec` (aliased as just `rake`) task. It tests with Rake 0.8 and 0.9 both.
240
+ * Integrate with [Travis CI](http://travis-ci.org).
241
+ * Make the SSH test more portable.
242
+ * Removed `rake spec:verbose`.
243
+
244
+ v0.0.1.pre5 - Jun 05, 2012
245
+ --------------------------
246
+
247
+ ### Added:
248
+ * Add `--trace` to the `vh help` screen.
249
+ * Rake 0.8 compatibility.
250
+ * Ruby 1.8.7 compatibility.
251
+
252
+ ### Changed:
253
+ * Use `:domain` instead of `:host`.
254
+
255
+ ### Misc:
256
+ * Allow rake 0.8 testing using `rake=0.8 rspec`.
257
+ * Add more README examples.
258
+
259
+ v0.0.1.pre4 - Jun 05, 2012
260
+ --------------------------
261
+
262
+ ### Added:
263
+ * `--simulate` switch.
264
+ * `--verbose` switch.
265
+ * The help screen now shows command line switches (like `--verbose`).
266
+ * Build in `tmp/` instead of in `releases/`.
267
+ * Use `verbose_mode` and `simulate_mode` instead. Using 'verbose' causes
268
+ problems.
269
+ * New `#deploy_script` helper, to make things more transparent.
270
+
271
+ ### Misc:
272
+ * Added a test for an actual deployment.
273
+ * Make the `test_env` runnable even without a net connection.
274
+ * New tests for actual deployment. Just do `rspec -t ssh`.
275
+ * Cleanup `git:clone` code.
276
+ * A buncha code cleanups.
277
+
278
+ v0.0.1.pre3 - Jun 04, 2012
279
+ --------------------------
280
+
281
+ ### Added:
282
+ * A help screen. You can see it with `vh --help`, `vh -h` or just plain `vh`.
283
+ * Implemented `vh --version`.
284
+ * Sequential release versions. Yay!
285
+ * Added the `build_path` setting, which supercedes the now-removed `release_path`.
286
+
287
+ ### Removed:
288
+ * `release_path` has been deprecated.
289
+
290
+ ### Fixed:
291
+ * Stupid critical bug fix: fix `vh:setup` giving the world access to deploy_to.
292
+ * Ensure that SSH stderr output is shown properly.
293
+ * Make `#invoke` work with tasks with arguments (eg, :'site:scrape[ensogo]')
294
+
295
+ ### Changed:
296
+ * Edit the default deploy.rb to have a description for the deploy task.
297
+ * Make `vh -T` show `vh` instead of `rake`.
298
+ * Make `vh setup` ensure ownership of the `deploy_to` path.
299
+ * Make deploy steps more explicit by echoing more statuses.
300
+ * When deploys fail, you now don't see the default Ruby backtrace. It now
301
+ behaves like Rake where you need to add `--trace` to see the trace.
302
+
303
+ ### Misc:
304
+ * Fixed the error that sometimes happens when invoking `vh` without a deploy.rb.
305
+ * Update the sample deploy.rb file to be more readable.
306
+ * The *test_env/* project can now be deployed without problems, so you can try
307
+ things out.
308
+ * Lots of new tests.
309
+ * rspec test order is now randomized.
310
+ * rspec output is colored (thanks to .rspec).
311
+ * Better script indentation when running in simulation mode.
312
+ * In symlinking `./current/`, use `ln -nfs` instead of `rm -f && ln -s`.
313
+
314
+ v0.0.1.pre2 - Jun 03, 2012
315
+ --------------------------
316
+
317
+ ### Added:
318
+ * Implement `vh init` which creates a sample *deploy.rb*.
319
+ * Implement 'vh setup'.
320
+ * Added the configurable `:releases_path` setting, so you may change where to keep releases.
321
+ * Added documentation via Reacco.
322
+ * Allow settings to throw errors on missing settings by adding a bang (e.g.,
323
+ `bundle_path!` or `settings.bundle_path!`)
324
+
325
+ ### Changed:
326
+ * Allow `bundle:install` to skip having shared bundle paths if `:bundle_path` is set to nil.
327
+ * Rename `force_unlock` to `deploy:force_unlock`.
328
+ * Rename `vh:link_shared_paths` to `deploy:link_shared_paths`.
329
+ * Invoking `deploy:force_unlock` now shows the command it uses.
330
+
331
+ ### Fixed:
332
+ * The `bundle:install` task now honors the `bundle_path` setting.
333
+ * Fixed `deploy:force_unlock` always throwing an error.
334
+ * The `deploy:force_unlock` task now honors the `lock_file`
335
+ setting, so the user may change the location of the lock file.
336
+ * Fixed `rails:assets_precompile` not compiling if no older assets found.
337
+
338
+ ### Removed:
339
+ * Deprecate `#validate_set`.
340
+
341
+ ### Other things:
342
+ * Move deploy settings to deploy.rb.
343
+ * Rename the `default` addon to `deploy`.
344
+
345
+ v0.0.1.pre1 - Jun 02, 2012
346
+ --------------------------
347
+
348
+ Initial version.