mina 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +2 -0
- data/.travis.yml +14 -5
- data/HISTORY.md +45 -1
- data/LICENSE +1 -1
- data/Makefile +29 -0
- data/Notes.md +70 -0
- data/Readme.md +1009 -0
- data/bin/mina +1 -1
- data/data/deploy.rb +13 -7
- data/lib/mina/bundler.rb +6 -1
- data/lib/mina/chruby.rb +49 -0
- data/lib/mina/default.rb +1 -0
- data/lib/mina/deploy.rb +17 -1
- data/lib/mina/deploy_helpers.rb +4 -4
- data/lib/mina/exec_helpers.rb +26 -19
- data/lib/mina/foreman.rb +5 -1
- data/lib/mina/git.rb +1 -1
- data/lib/mina/helpers.rb +22 -13
- data/lib/mina/rails.rb +6 -6
- data/lib/mina/rbenv.rb +1 -0
- data/lib/mina/rvm.rb +2 -4
- data/lib/mina/ssh_helpers.rb +2 -1
- data/lib/mina/version.rb +1 -1
- data/lib/mina/whenever.rb +6 -6
- data/mina.gemspec +2 -2
- data/spec/command_helper.rb +1 -1
- data/spec/commands/cleanup_spec.rb +16 -0
- data/spec/commands/command_spec.rb +18 -18
- data/spec/commands/custom_config_spec.rb +2 -2
- data/spec/commands/deploy_spec.rb +7 -7
- data/spec/commands/outside_project_spec.rb +7 -7
- data/spec/commands/real_deploy_spec.rb +21 -21
- data/spec/commands/verbose_spec.rb +2 -2
- data/spec/dsl/invoke_spec.rb +17 -2
- data/spec/dsl/queue_spec.rb +4 -4
- data/spec/dsl/settings_in_rake_spec.rb +6 -6
- data/spec/dsl/settings_spec.rb +16 -10
- data/spec/dsl/to_spec.rb +2 -2
- data/spec/helpers/exec_helper_spec.rb +19 -0
- data/spec/spec_helper.rb +6 -0
- data/support/Readme-footer.md +32 -0
- data/support/Readme-header.md +16 -0
- data/support/guide.md +297 -0
- data/support/index.html +53 -0
- data/support/to_md.rb +11 -0
- data/test_env/config/deploy.rb +2 -0
- metadata +96 -61
- checksums.yaml +0 -7
- data/README.md +0 -114
data/README.md
DELETED
@@ -1,114 +0,0 @@
|
|
1
|
-
# Mina
|
2
|
-
|
3
|
-
Really fast deployer and server automation tool.
|
4
|
-
|
5
|
-
Mina works really fast because it's a deploy Bash script generator. It
|
6
|
-
generates an entire procedure as a Bash script and runs it remotely in the
|
7
|
-
server.
|
8
|
-
|
9
|
-
Compare this to the likes of Vlad or Capistrano, where each command
|
10
|
-
is ran separately on their own SSH sessions. Mina only creates *one* SSH
|
11
|
-
session per deploy, minimizing the SSH connection overhead.
|
12
|
-
|
13
|
-
$ gem install mina
|
14
|
-
$ mina
|
15
|
-
|
16
|
-
[](http://travis-ci.org/nadarei/mina) [](http://badge.fury.io/rb/mina)
|
17
|
-
|
18
|
-
Documentation
|
19
|
-
-------------
|
20
|
-
|
21
|
-
Please consult the [project documentation](http://nadarei.co/mina) for full
|
22
|
-
details.
|
23
|
-
|
24
|
-
Problems or suggestions? File issues at the [issue tracker][issues]
|
25
|
-
(github.com). You may also look at the [Trello board][trello] (trello.com) we
|
26
|
-
use for development.
|
27
|
-
|
28
|
-
Documentation sources
|
29
|
-
---------------------
|
30
|
-
|
31
|
-
See [nadarei/mina-docs](https://github.com/nadarei/mina-docs) for the sources of
|
32
|
-
the documentation site. Please ensure that docs there are in sync with the
|
33
|
-
features here.
|
34
|
-
|
35
|
-
Development & testing
|
36
|
-
---------------------
|
37
|
-
|
38
|
-
To test out stuff in development:
|
39
|
-
|
40
|
-
``` sh
|
41
|
-
# Run specs
|
42
|
-
$ rspec
|
43
|
-
$ rspec -t ssh # Run SSH tests (read test_env/config/deploy.rb first)
|
44
|
-
$ rake=10 rspec
|
45
|
-
$ rake=0.9 rspec
|
46
|
-
$ rake=0.8 rspec
|
47
|
-
|
48
|
-
# Alias your 'mina' to use it everywhere
|
49
|
-
$ alias mina="`pwd -LP`/bin/mina"
|
50
|
-
```
|
51
|
-
|
52
|
-
### Doing test deploys
|
53
|
-
|
54
|
-
Try out the test environment:
|
55
|
-
|
56
|
-
``` sh
|
57
|
-
$ cd test_env
|
58
|
-
$ mina deploy --simulate
|
59
|
-
$ mina deploy
|
60
|
-
|
61
|
-
# There's an rspec task for it too
|
62
|
-
$ rspec -t ssh
|
63
|
-
```
|
64
|
-
|
65
|
-
### Gem management
|
66
|
-
|
67
|
-
``` sh
|
68
|
-
# To release the gem:
|
69
|
-
# Install the Git changelog helper: https://gist.github.com/2880525
|
70
|
-
# Then:
|
71
|
-
|
72
|
-
$ vim lib/mina/version.rb
|
73
|
-
$ git clog -w
|
74
|
-
$ vim HISTORY.md
|
75
|
-
$ git commit -m "Release v0.8.4."
|
76
|
-
$ rake release
|
77
|
-
|
78
|
-
# Please don't forget to tag the release in github.com/nadarei/mina-docs too!
|
79
|
-
|
80
|
-
$ rake build # Builds the gem file
|
81
|
-
$ rake install # Installs the gem locally
|
82
|
-
```
|
83
|
-
|
84
|
-
Acknowledgements
|
85
|
-
----------------
|
86
|
-
|
87
|
-
© 2012, Nadarei. Released under the [MIT
|
88
|
-
License](http://www.opensource.org/licenses/mit-license.php).
|
89
|
-
|
90
|
-
Mina is authored and maintained by [Rico Sta. Cruz][rsc] and [Michael
|
91
|
-
Galero][mg] with help from its [contributors][c]. It is sponsored by our
|
92
|
-
startup, [Nadarei][nd].
|
93
|
-
|
94
|
-
* [Nadarei](http://nadarei.co) (nadarei.co)
|
95
|
-
* [Github](http://github.com/nadarei) (@nadarei)
|
96
|
-
|
97
|
-
Rico:
|
98
|
-
|
99
|
-
* [My website](http://ricostacruz.com) (ricostacruz.com)
|
100
|
-
* [Github](http://github.com/rstacruz) (@rstacruz)
|
101
|
-
* [Twitter](http://twitter.com/rstacruz) (@rstacruz)
|
102
|
-
|
103
|
-
Michael:
|
104
|
-
|
105
|
-
* [My website][mg] (michaelgalero.com)
|
106
|
-
* [Github](http://github.com/mikong) (@mikong)
|
107
|
-
|
108
|
-
[rsc]: http://ricostacruz.com
|
109
|
-
[mg]: http://devblog.michaelgalero.com/
|
110
|
-
[c]: http://github.com/nadarei/mina/contributors
|
111
|
-
[nd]: http://nadarei.co
|
112
|
-
[issues]: https://github.com/nadarei/mina/issues
|
113
|
-
[trello]: https://trello.com/board/mina/4fc8b3023d9c9a4d72e573e6
|
114
|
-
|