mina 0.3.8 → 1.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +16 -0
  3. data/.gitignore +0 -1
  4. data/.rubocop.yml +1156 -0
  5. data/Gemfile +2 -8
  6. data/{CHANGELOG.md → PRE_1_CHANGELOG.md} +0 -0
  7. data/Rakefile +2 -18
  8. data/Readme.md +39 -1116
  9. data/bin/mina +1 -62
  10. data/data/deploy.rb +19 -46
  11. data/data/deploy.sh.erb +22 -23
  12. data/docs/Readme.md +8 -0
  13. data/docs/command_line_options.md +33 -0
  14. data/docs/deploying.md +97 -0
  15. data/docs/faq.md +1 -0
  16. data/docs/getting_started.md +44 -0
  17. data/docs/migrating.md +30 -0
  18. data/docs/writing_your_own_tasks.md +117 -0
  19. data/lib/Minafile +3 -0
  20. data/lib/mina.rb +30 -18
  21. data/lib/mina/application.rb +74 -0
  22. data/lib/mina/backend/local.rb +22 -0
  23. data/lib/mina/backend/remote.rb +42 -0
  24. data/lib/mina/commands.rb +45 -0
  25. data/lib/mina/configuration.rb +36 -0
  26. data/lib/mina/dsl.rb +47 -0
  27. data/lib/mina/helpers/internal.rb +29 -0
  28. data/lib/mina/helpers/output.rb +42 -0
  29. data/lib/mina/runner.rb +39 -0
  30. data/lib/mina/runner/exec.rb +15 -0
  31. data/lib/mina/runner/pretty.rb +53 -0
  32. data/lib/mina/runner/printer.rb +17 -0
  33. data/lib/mina/runner/system.rb +15 -0
  34. data/lib/mina/version.rb +1 -3
  35. data/mina.gemspec +27 -16
  36. data/spec/lib/mina/application_spec.rb +39 -0
  37. data/spec/lib/mina/backend/local_spec.rb +16 -0
  38. data/spec/lib/mina/backend/remote_spec.rb +17 -0
  39. data/spec/lib/mina/commands_spec.rb +93 -0
  40. data/spec/lib/mina/configuration_spec.rb +52 -0
  41. data/spec/lib/mina/helpers/internal_spec.rb +50 -0
  42. data/spec/lib/mina/helpers/output_spec.rb +48 -0
  43. data/spec/lib/mina/runner_spec.rb +36 -0
  44. data/spec/lib/mina_spec.rb +7 -0
  45. data/spec/spec_helper.rb +13 -21
  46. data/spec/support/run_helper.rb +36 -0
  47. data/tasks/mina/bundler.rb +15 -0
  48. data/tasks/mina/chruby.rb +19 -0
  49. data/tasks/mina/default.rb +36 -0
  50. data/tasks/mina/deploy.rb +85 -0
  51. data/tasks/mina/git.rb +36 -0
  52. data/tasks/mina/install.rb +18 -0
  53. data/tasks/mina/rails.rb +108 -0
  54. data/tasks/mina/rbenv.rb +15 -0
  55. data/tasks/mina/rvm.rb +39 -0
  56. data/tasks/mina/ry.rb +26 -0
  57. data/test_env/config/deploy.rb +44 -72
  58. metadata +82 -59
  59. data/.travis.yml +0 -21
  60. data/CONTRIBUTING.md +0 -124
  61. data/HISTORY.md +0 -394
  62. data/Makefile +0 -32
  63. data/Notes.md +0 -70
  64. data/lib/mina/bundler.rb +0 -49
  65. data/lib/mina/chruby.rb +0 -49
  66. data/lib/mina/default.rb +0 -158
  67. data/lib/mina/deploy.rb +0 -160
  68. data/lib/mina/deploy_helpers.rb +0 -34
  69. data/lib/mina/exec_helpers.rb +0 -111
  70. data/lib/mina/foreman.rb +0 -83
  71. data/lib/mina/git.rb +0 -69
  72. data/lib/mina/helpers.rb +0 -408
  73. data/lib/mina/local_helpers.rb +0 -97
  74. data/lib/mina/npm.rb +0 -89
  75. data/lib/mina/output_helpers.rb +0 -92
  76. data/lib/mina/rails.rb +0 -245
  77. data/lib/mina/rake.rb +0 -10
  78. data/lib/mina/rbenv.rb +0 -47
  79. data/lib/mina/rvm.rb +0 -88
  80. data/lib/mina/ry.rb +0 -55
  81. data/lib/mina/settings.rb +0 -32
  82. data/lib/mina/ssh_helpers.rb +0 -125
  83. data/lib/mina/tools.rb +0 -20
  84. data/lib/mina/whenever.rb +0 -51
  85. data/manual/index.md +0 -15
  86. data/manual/modules.md +0 -2
  87. data/spec/command_helper.rb +0 -52
  88. data/spec/commands/cleanup_spec.rb +0 -16
  89. data/spec/commands/command_spec.rb +0 -71
  90. data/spec/commands/custom_config_spec.rb +0 -20
  91. data/spec/commands/deploy_spec.rb +0 -40
  92. data/spec/commands/outside_project_spec.rb +0 -35
  93. data/spec/commands/real_deploy_spec.rb +0 -56
  94. data/spec/commands/ssh_spec.rb +0 -14
  95. data/spec/commands/verbose_spec.rb +0 -21
  96. data/spec/dsl/invoke_spec.rb +0 -49
  97. data/spec/dsl/queue_spec.rb +0 -49
  98. data/spec/dsl/settings_in_rake_spec.rb +0 -39
  99. data/spec/dsl/settings_spec.rb +0 -61
  100. data/spec/dsl/to_spec.rb +0 -20
  101. data/spec/fixtures/custom_file_env/custom_deploy.rb +0 -15
  102. data/spec/fixtures/empty_env/config/deploy.rb +0 -15
  103. data/spec/helpers/exec_helper_spec.rb +0 -19
  104. data/spec/helpers/local_helper_spec.rb +0 -70
  105. data/spec/helpers/output_helper_spec.rb +0 -38
  106. data/support/Readme-footer.md +0 -31
  107. data/support/Readme-header.md +0 -16
  108. data/support/guide.md +0 -297
  109. data/support/index.html +0 -53
  110. data/support/third_party_modules.md +0 -23
  111. data/support/to_md.rb +0 -11
data/.travis.yml DELETED
@@ -1,21 +0,0 @@
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
- - gabrijel.skoro@infinum.hr
20
- - stjepan.hadjic@infinum.hr
21
-
data/CONTRIBUTING.md DELETED
@@ -1,124 +0,0 @@
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/HISTORY.md DELETED
@@ -1,394 +0,0 @@
1
- Latest version - Mar 27, 2015
2
- -----------------------------
3
-
4
- ### Fixed:
5
- * invoke does not work after a to block (#285)
6
-
7
- ### Added:
8
- * before and after hooks
9
-
10
-
11
- Latest version - Mar 10, 2015
12
- -----------------------------
13
-
14
- ### Fixed:
15
- * link typo in readme (#273) [Henare Degan]
16
- * up formatting of code block in readme (#274) [Henare Degan]
17
- * Rolling back to previous release (#9) [Tyler Mandry]
18
- * ruby 1.8.7 and rake 0.9 issue with invoke
19
-
20
- ### Changed:
21
- * update 3rd party list
22
- * update docs, added db_rollback rails command
23
-
24
- [Tyler Mandry]: https://github.com/tmandry
25
- [Henare Degan]: https://github.com/henare
26
-
27
-
28
- v0.3.2 - January 24, 2015
29
- -----------------------------
30
-
31
- * 3rd party modules (#258) [Denis]
32
- * Adding support for environment variables, env_var (#161) [Ted Price]
33
- * Make rails console task dependent on the environment (#220) [lucapette]
34
- * mention .ruby-version for rbenv comment (#249) [Tomi]
35
- * update emails for travis
36
- * npm support with a simple npm:install task (#227) [Paul B.]
37
- * `mina ssh` command to connect to server (#249) [Anton Dieterle]
38
- * link in the support guide (#254) [Aaditya S]
39
-
40
- [Denis]: https://github.com/stereodenis
41
- [Aaditya S]: https://github.com/jartek
42
- [Tomi]: https://github.com/equivalent
43
- [lucapette]: https://github.com/lucapette
44
- [Ted Price]: https://github.com/pricees
45
- [Anton Dieterle]: https://github.com/adie
46
- [Paul B.]: https://github.com/paulRbr
47
-
48
-
49
- v0.3.1 - October 17, 2014
50
- -------------------------
51
-
52
- * Fix copy command for assets. (#150) [Joshua Dover]
53
- * Add comment for system-wide RVM install. (#112) [Sam Qiu]
54
- * Incorrect exit status if deploy fails (#95) [Alexander Borovsky]
55
- * Bundler: Allow configuration of groups to be skipped during installation (#123) [Luis Lavena]
56
- * Parse task string to reenable task (#189) [Pedro Chambino]
57
- * Update Travis CI to test via Ruby 2.1.2. (#197) [Luciano Sousa]
58
- * Add jRuby support by using threads instead of fork. (#147, #148) [Jan Berdajs]
59
- * Add rescue for rubinius SignalException. (#204) [Qen]
60
- * Using `bundle_bin` instead `bundle` in whenever tasks. (#195) [Maxim Dorofienko]
61
- * Convert specs to RSpec expect syntax with transpec (#194) [Logan Hasson]
62
- * Remove binstubs options from defaults (#219) [lucapette]
63
- * Updated deploy.rb template to use shared_path (#235) [postmodern]
64
- * Allow the foreman export format to be configurable (#232) [postmodern]
65
- * fix: bin/mina exit_status -> exitstatus (#212) [Zhomart Mukhamejanov]
66
- * Add foreman_location and foreman_sudo configs (#239) [Pedro Chambino]
67
- * Check db/migrate/ instead of schema.rb (#177) [Charles Dale]
68
- * Fix mina deploy --help, should not cause a deploy (#238)
69
- * Fix git:clone on win7 x64 had error (#216)
70
- * Add deploy:cleanup after deploy
71
- * Prevent foreman export from expanding the current/ symlink (#241)
72
- * Support pretty_system on ruby 1.8.7 (#237)
73
- * Ruby 1.8.7 doesn't support empty symbols (#240)
74
-
75
-
76
- [Joshua Dover]: https://github.com/gerfuls
77
- [Sam Qiu]: https://github.com/samqiu
78
- [Alexander Borovsky]: https://github.com/borovsky
79
- [Luis Lavena]: https://github.com/luislavena
80
- [Pedro Chambino]: https://github.com/PChambino
81
- [Luciano Sousa]: https://github.com/lucianosousa
82
- [Jan Berdajs]: https://github.com/mrbrdo
83
- [Qen]: https://github.com/qen
84
- [Maxim Dorofienko]: https://github.com/mdorfin
85
- [Logan Hasson]: https://github.com/loganhasson
86
- [lucapette]: https://github.com/lucapette
87
- [postmodern]: https://github.com/postmodern
88
- [Zhomart Mukhamejanov]: https://github.com/Zhomart
89
- [Charles Dale]: https://github.com/chuckd
90
-
91
- v0.3.0 - July 10, 2013
92
- ----------------------
93
-
94
- * **Stdin is now being passed, thereby making git prompts work.**
95
- * Foreman: Add foreman support. (#71) [Dan Sosedoff]
96
- * Foreman: Fix 'command not found' error. (#89, #101)
97
- * Foreman: Fix forman stop. [Andrew Rosa]
98
- * Fix `mina setup` showing an error. (#64) [Anthony Hristov]
99
- * Fix "broken pipe" error after deploying. (#64) [Tomas Varneckas]
100
- * Fix error regarding "open4" in Windows environments. (#58)
101
- * Fix the default script's "touch tmp/restart.txt" to work for reliably. (#77)
102
- [Eugene Diachkin]
103
- * Fix errors that happen when the host string is frozen. [sonots]
104
- * RVM: use 'rvm use --create'. (#81) [Marcos Beirigo]
105
- * RVM: Add 'rvm:wrapper' task to create wrappers. (#81) [Marcos Beirigo]
106
- * New helper method called 'capture' to capture SSH output. (#113) [Naoki
107
- Ainoya]
108
- * Fix encoding errors. (#68) [Faud Saud]
109
-
110
- Special thanks to all the contributors who made this release happen.
111
-
112
- https://github.com/mina-deploy/mina/compare/v0.2.1...v0.3.0
113
-
114
- [sonots]: https://github.com/sonots
115
- [Tomas Varneckas]: https://github.com/tomasv
116
- [Anthony Hristov]: https://github.com/muxcmux
117
- [Dan Sosedoff]: https://github.com/sosedoff
118
- [Eugene Diachkin]: https://github.com/ineu
119
- [Marcos Beirigo]: https://github.com/marcosbeirigo
120
- [Andrew Rosa]: https://github.com/andrewhr
121
- [Naoki Ainoya]: https://github.com/saketoba
122
- [Faud Saud]: https://github.com/faudsaud
123
-
124
- v0.2.1 - Sep 08, 2012
125
- ---------------------
126
-
127
- This release is to fix some issues that should've been cleaned up in the
128
- previous release, but wasn't.
129
-
130
- ### Fixed:
131
- * **Fix SSH helpers giving a 'class required' error.**
132
- * **Send stdout even in term_mode = :pretty mode.**
133
- * Rbenv: Fix compatibility with Debian, Arch, Fedora. (#44)
134
- * Supress the "--depth is ignored in local clones" warning. (#56)
135
-
136
- ### Added:
137
- * Add the `:ssh_options` setting. (#23)
138
- * Add the `:forward_agent` setting. (#23)
139
-
140
- ### Changed:
141
- * Make the `:term_mode` setting accept strings, not just symbols. (eg: `set
142
- :term_mode, 'exec'`)
143
-
144
- v0.2.0 - Sep 08, 2012
145
- ---------------------
146
-
147
- This release had two pre releases:
148
-
149
- * v0.2.0.pre2 (Aug 2, 2012)
150
- * v0.1.3.pre1 (Jul 13, 2012)
151
-
152
- ### Fixed:
153
- * Allow changing `:term_mode` in the setup task. (#51, @alfuken)
154
- * Prevent `git log` from using a pager. (#42, @tmak)
155
- * `deploy:cleanup` can now be called in a deploy script. (#50, @dariocravero)
156
- * Don't invoke bash anymore (!), assume that bash is the shell for the user.
157
- Fixes Ubuntu 12, and many other things.
158
- * Fixed `ssh(cmd, return: true)` that used to exit. (#53 from @jpascal)
159
- * [pre2] Call ssh with no double use `-t` parameter.
160
- * [pre2] Fix Ruby 1.8 compatibility.
161
- * [pre2] Fix the "undefined method > for Process::Status" error.
162
- * [pre2] Using `force_migrate=1` and `force_assets=1` to `rails:db_migrate`
163
- and `rails:assets_precompile` now works well.
164
- * [pre1] Respect the `bundle_bin` setting when doing `bundle exec` in Rails commands. (#29)
165
- * [pre1] Doing `rails:assets_precompile` now properly skips asset compilation if not needed. (#25)
166
-
167
- ### Added:
168
- * __Added the 'queue!' helper.__
169
- * Add support for __Whenever__. (#47, @jpascal)
170
- * Add a new `:environment` task that gets loaded on setup/deploy.
171
- * __Add explicit support for rbenv/rvm.__ (#5, #39)
172
- * Implement :'rvm:use[...]'. (#5, #39)
173
- * Implement :'rbenv:load'. (#5, #39)
174
- * Revert `rails:optimize_for_3.2` from the pre2 release. (#32)
175
- * [pre2] __Optimize git:clone by caching the repository.__ This way, updates are
176
- faster because not the entire repo is cloned everytime. (#10)
177
- * [pre2] __Show elapsed time that a deploy takes.__
178
- * [pre2] __Display the git commit nicely when deploying.__
179
- * [pre2] __Force quit when 2 `^C`s are pressed.__
180
- * [pre2] New `die` helper.
181
- * [pre2] New `report_time` helper.
182
- * [pre2] New `to_directory` helper. (#35)
183
- * [pre2] Put optional optimizations for Rails 3.2 asset pipeline. (#32) -- reverted
184
- * Update sample deploy script:
185
- - [pre2] Update default deploy.rb to note :branch.
186
- - [pre2] Add `link_shared_paths` to the sample deploy script.
187
- * [pre1] Doing `rails:db_migrate` now skips doing migrations if they're not needed. (#18)
188
- * [pre1] Added the `mina console` command for Rails.
189
- * [pre1] Make asset paths configurable using the `asset_paths` setting.
190
-
191
- ### Changed:
192
- * Force removal of shared path destinations before linking with
193
- `deploy:link_shared_paths`. Fixes symlinking of `log/` in Rails projects.
194
- * __Rails: speed up default asset compilation a bit by invoking
195
- `assets:precompile` with `RAILS_GROUPS=assets`.__
196
- * Add helpful error message when there is a problem with
197
- deploy.rb or a custom Rakefile. (#37, @sge-jesse-adams)
198
- * Update the default deploy.rb to add notes about 'mina setup' customizations.
199
- * Make `mina run`, `mina rake`, `mina console` use the new `:environment` task.
200
- * Allow calling `die` without arguments.
201
- * [pre2] __Improve output of `mina init`.__
202
- * [pre2] Prettier output for `mina setup`. Also, show a better error message for it.
203
- * [pre1] Refactor pretty printing to be simpler, cleaner, and extensible.
204
- * [pre1] Show prettier abort messages when ^C'd.
205
-
206
- v0.1.2 - Jul 06, 2012
207
- ---------------------
208
-
209
- This release had two prereleases: v0.1.2.pre1 and v0.1.2.pre2.
210
-
211
- ### Fixed:
212
- * __Show stdout output properly on deploy.__
213
- * 'mina rake' now works.
214
- * [.pre2] __Fix `deploy:link_shared_paths` to use absolute paths.__
215
- * [.pre2] Fix console logs for task init.
216
- * [.pre1] __Fixed JRuby support.__
217
- * [.pre1] __Respect .bashrc.__ (#5)
218
-
219
- ### Added:
220
- * [.pre2] Add `:bundle_bin` option.
221
- * [.pre2] Add `:ssh` port option.
222
-
223
- ### Changed: (v0.1.2)
224
- * Refactor pretty printing to be simpler, cleaner, and extensible.
225
- * Show prettier abort messages when ^C'd.
226
- * Use the new error message format. (See lib/mina/output_helpers.rb)
227
- * [.pre1] Implement `ssh("..", return: true)`.
228
- * [.pre1] Rename `simulate_mode` to `simulate_mode?`. Same with `verbose_mode?`.
229
- * [.pre1] Show the SSH command in the simulation output.
230
-
231
- v0.1.1 - Jun 07, 2012
232
- ---------------------
233
-
234
- ### Added:
235
- * Check for releases_path directory in deploy script.
236
- * mina deploy:cleanup
237
- * Support for -f option.
238
-
239
- ### Changed:
240
- * Gem description.
241
-
242
- ### Fixed:
243
- * deploy.rb template (domain, user, git:clone).
244
- * Handle empty Git repository.
245
- * Add pkg to gitignore.
246
-
247
- v0.1.0 - Jun 06, 2012
248
- ---------------------
249
-
250
- Renamed to Mina from Van Helsing.
251
-
252
-
253
- v0.0.1.pre7 - Jun 06, 2012
254
- --------------------------
255
-
256
- ### Added:
257
- * __`vh rails[command]` and `vh rake[command]` tasks.__
258
- * __Add `vh run`.__
259
- * `-S` as an alias for `--simulate`.
260
- * the `#set_default` helper.
261
- * the `bundle_prefix` setting.
262
- * New `term_mode` setting.
263
-
264
- ### Changed:
265
- * `--simulate` show things without the `ssh` command or shellescaping.
266
-
267
- v0.0.1.pre6 - Jun 06, 2012
268
- --------------------------
269
-
270
- Thanks to @sosedoff for his contributions that made it to this release.
271
-
272
- ### Added:
273
- * __Rubinius support.__
274
- * __Ruby 1.8 support.__
275
- * Prelimenary JRuby support.
276
- * MIT license.
277
- * Highlight errors as red in deploy.
278
- * Use popen4 instead of popen3. Support JRuby via IO.popen4.
279
-
280
- ### Changed:
281
- * __Rename `to :restart` to `to :launch`.__
282
- * __Make deploys fail if renaming the build (eg, not setup properly) fails.__
283
-
284
- ### Tests:
285
- * Added `rake spec` (aliased as just `rake`) task. It tests with Rake 0.8 and 0.9 both.
286
- * Integrate with [Travis CI](http://travis-ci.org).
287
- * Make the SSH test more portable.
288
- * Removed `rake spec:verbose`.
289
-
290
- v0.0.1.pre5 - Jun 05, 2012
291
- --------------------------
292
-
293
- ### Added:
294
- * Add `--trace` to the `vh help` screen.
295
- * Rake 0.8 compatibility.
296
- * Ruby 1.8.7 compatibility.
297
-
298
- ### Changed:
299
- * Use `:domain` instead of `:host`.
300
-
301
- ### Misc:
302
- * Allow rake 0.8 testing using `rake=0.8 rspec`.
303
- * Add more README examples.
304
-
305
- v0.0.1.pre4 - Jun 05, 2012
306
- --------------------------
307
-
308
- ### Added:
309
- * `--simulate` switch.
310
- * `--verbose` switch.
311
- * The help screen now shows command line switches (like `--verbose`).
312
- * Build in `tmp/` instead of in `releases/`.
313
- * Use `verbose_mode` and `simulate_mode` instead. Using 'verbose' causes
314
- problems.
315
- * New `#deploy_script` helper, to make things more transparent.
316
-
317
- ### Misc:
318
- * Added a test for an actual deployment.
319
- * Make the `test_env` runnable even without a net connection.
320
- * New tests for actual deployment. Just do `rspec -t ssh`.
321
- * Cleanup `git:clone` code.
322
- * A buncha code cleanups.
323
-
324
- v0.0.1.pre3 - Jun 04, 2012
325
- --------------------------
326
-
327
- ### Added:
328
- * A help screen. You can see it with `vh --help`, `vh -h` or just plain `vh`.
329
- * Implemented `vh --version`.
330
- * Sequential release versions. Yay!
331
- * Added the `build_path` setting, which supercedes the now-removed `release_path`.
332
-
333
- ### Removed:
334
- * `release_path` has been deprecated.
335
-
336
- ### Fixed:
337
- * Stupid critical bug fix: fix `vh:setup` giving the world access to deploy_to.
338
- * Ensure that SSH stderr output is shown properly.
339
- * Make `#invoke` work with tasks with arguments (eg, :'site:scrape[ensogo]')
340
-
341
- ### Changed:
342
- * Edit the default deploy.rb to have a description for the deploy task.
343
- * Make `vh -T` show `vh` instead of `rake`.
344
- * Make `vh setup` ensure ownership of the `deploy_to` path.
345
- * Make deploy steps more explicit by echoing more statuses.
346
- * When deploys fail, you now don't see the default Ruby backtrace. It now
347
- behaves like Rake where you need to add `--trace` to see the trace.
348
-
349
- ### Misc:
350
- * Fixed the error that sometimes happens when invoking `vh` without a deploy.rb.
351
- * Update the sample deploy.rb file to be more readable.
352
- * The *test_env/* project can now be deployed without problems, so you can try
353
- things out.
354
- * Lots of new tests.
355
- * rspec test order is now randomized.
356
- * rspec output is colored (thanks to .rspec).
357
- * Better script indentation when running in simulation mode.
358
- * In symlinking `./current/`, use `ln -nfs` instead of `rm -f && ln -s`.
359
-
360
- v0.0.1.pre2 - Jun 03, 2012
361
- --------------------------
362
-
363
- ### Added:
364
- * Implement `vh init` which creates a sample *deploy.rb*.
365
- * Implement 'vh setup'.
366
- * Added the configurable `:releases_path` setting, so you may change where to keep releases.
367
- * Added documentation via Reacco.
368
- * Allow settings to throw errors on missing settings by adding a bang (e.g.,
369
- `bundle_path!` or `settings.bundle_path!`)
370
-
371
- ### Changed:
372
- * Allow `bundle:install` to skip having shared bundle paths if `:bundle_path` is set to nil.
373
- * Rename `force_unlock` to `deploy:force_unlock`.
374
- * Rename `vh:link_shared_paths` to `deploy:link_shared_paths`.
375
- * Invoking `deploy:force_unlock` now shows the command it uses.
376
-
377
- ### Fixed:
378
- * The `bundle:install` task now honors the `bundle_path` setting.
379
- * Fixed `deploy:force_unlock` always throwing an error.
380
- * The `deploy:force_unlock` task now honors the `lock_file`
381
- setting, so the user may change the location of the lock file.
382
- * Fixed `rails:assets_precompile` not compiling if no older assets found.
383
-
384
- ### Removed:
385
- * Deprecate `#validate_set`.
386
-
387
- ### Other things:
388
- * Move deploy settings to deploy.rb.
389
- * Rename the `default` addon to `deploy`.
390
-
391
- v0.0.1.pre1 - Jun 02, 2012
392
- --------------------------
393
-
394
- Initial version.