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.
- checksums.yaml +4 -4
- data/.codeclimate.yml +16 -0
- data/.gitignore +0 -1
- data/.rubocop.yml +1156 -0
- data/Gemfile +2 -8
- data/{CHANGELOG.md → PRE_1_CHANGELOG.md} +0 -0
- data/Rakefile +2 -18
- data/Readme.md +39 -1116
- data/bin/mina +1 -62
- data/data/deploy.rb +19 -46
- data/data/deploy.sh.erb +22 -23
- data/docs/Readme.md +8 -0
- data/docs/command_line_options.md +33 -0
- data/docs/deploying.md +97 -0
- data/docs/faq.md +1 -0
- data/docs/getting_started.md +44 -0
- data/docs/migrating.md +30 -0
- data/docs/writing_your_own_tasks.md +117 -0
- data/lib/Minafile +3 -0
- data/lib/mina.rb +30 -18
- data/lib/mina/application.rb +74 -0
- data/lib/mina/backend/local.rb +22 -0
- data/lib/mina/backend/remote.rb +42 -0
- data/lib/mina/commands.rb +45 -0
- data/lib/mina/configuration.rb +36 -0
- data/lib/mina/dsl.rb +47 -0
- data/lib/mina/helpers/internal.rb +29 -0
- data/lib/mina/helpers/output.rb +42 -0
- data/lib/mina/runner.rb +39 -0
- data/lib/mina/runner/exec.rb +15 -0
- data/lib/mina/runner/pretty.rb +53 -0
- data/lib/mina/runner/printer.rb +17 -0
- data/lib/mina/runner/system.rb +15 -0
- data/lib/mina/version.rb +1 -3
- data/mina.gemspec +27 -16
- data/spec/lib/mina/application_spec.rb +39 -0
- data/spec/lib/mina/backend/local_spec.rb +16 -0
- data/spec/lib/mina/backend/remote_spec.rb +17 -0
- data/spec/lib/mina/commands_spec.rb +93 -0
- data/spec/lib/mina/configuration_spec.rb +52 -0
- data/spec/lib/mina/helpers/internal_spec.rb +50 -0
- data/spec/lib/mina/helpers/output_spec.rb +48 -0
- data/spec/lib/mina/runner_spec.rb +36 -0
- data/spec/lib/mina_spec.rb +7 -0
- data/spec/spec_helper.rb +13 -21
- data/spec/support/run_helper.rb +36 -0
- data/tasks/mina/bundler.rb +15 -0
- data/tasks/mina/chruby.rb +19 -0
- data/tasks/mina/default.rb +36 -0
- data/tasks/mina/deploy.rb +85 -0
- data/tasks/mina/git.rb +36 -0
- data/tasks/mina/install.rb +18 -0
- data/tasks/mina/rails.rb +108 -0
- data/tasks/mina/rbenv.rb +15 -0
- data/tasks/mina/rvm.rb +39 -0
- data/tasks/mina/ry.rb +26 -0
- data/test_env/config/deploy.rb +44 -72
- metadata +82 -59
- data/.travis.yml +0 -21
- data/CONTRIBUTING.md +0 -124
- data/HISTORY.md +0 -394
- data/Makefile +0 -32
- data/Notes.md +0 -70
- data/lib/mina/bundler.rb +0 -49
- data/lib/mina/chruby.rb +0 -49
- data/lib/mina/default.rb +0 -158
- data/lib/mina/deploy.rb +0 -160
- data/lib/mina/deploy_helpers.rb +0 -34
- data/lib/mina/exec_helpers.rb +0 -111
- data/lib/mina/foreman.rb +0 -83
- data/lib/mina/git.rb +0 -69
- data/lib/mina/helpers.rb +0 -408
- data/lib/mina/local_helpers.rb +0 -97
- data/lib/mina/npm.rb +0 -89
- data/lib/mina/output_helpers.rb +0 -92
- data/lib/mina/rails.rb +0 -245
- data/lib/mina/rake.rb +0 -10
- data/lib/mina/rbenv.rb +0 -47
- data/lib/mina/rvm.rb +0 -88
- data/lib/mina/ry.rb +0 -55
- data/lib/mina/settings.rb +0 -32
- data/lib/mina/ssh_helpers.rb +0 -125
- data/lib/mina/tools.rb +0 -20
- data/lib/mina/whenever.rb +0 -51
- data/manual/index.md +0 -15
- data/manual/modules.md +0 -2
- data/spec/command_helper.rb +0 -52
- data/spec/commands/cleanup_spec.rb +0 -16
- data/spec/commands/command_spec.rb +0 -71
- data/spec/commands/custom_config_spec.rb +0 -20
- data/spec/commands/deploy_spec.rb +0 -40
- data/spec/commands/outside_project_spec.rb +0 -35
- data/spec/commands/real_deploy_spec.rb +0 -56
- data/spec/commands/ssh_spec.rb +0 -14
- data/spec/commands/verbose_spec.rb +0 -21
- data/spec/dsl/invoke_spec.rb +0 -49
- data/spec/dsl/queue_spec.rb +0 -49
- data/spec/dsl/settings_in_rake_spec.rb +0 -39
- data/spec/dsl/settings_spec.rb +0 -61
- data/spec/dsl/to_spec.rb +0 -20
- data/spec/fixtures/custom_file_env/custom_deploy.rb +0 -15
- data/spec/fixtures/empty_env/config/deploy.rb +0 -15
- data/spec/helpers/exec_helper_spec.rb +0 -19
- data/spec/helpers/local_helper_spec.rb +0 -70
- data/spec/helpers/output_helper_spec.rb +0 -38
- data/support/Readme-footer.md +0 -31
- data/support/Readme-header.md +0 -16
- data/support/guide.md +0 -297
- data/support/index.html +0 -53
- data/support/third_party_modules.md +0 -23
- data/support/to_md.rb +0 -11
data/support/index.html
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<meta charset='utf-8'>
|
4
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
5
|
-
<meta name="viewport" content="width=device-width">
|
6
|
-
|
7
|
-
<title>Mina</title>
|
8
|
-
|
9
|
-
<!-- Flatdoc -->
|
10
|
-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
11
|
-
<script src='http://rstacruz.github.io/flatdoc/v/0.8.0/legacy.js'></script>
|
12
|
-
<script src='http://rstacruz.github.io/flatdoc/v/0.8.0/flatdoc.js'></script>
|
13
|
-
|
14
|
-
<!-- Flatdoc theme -->
|
15
|
-
<link href='http://rstacruz.github.io/flatdoc/v/0.8.0/theme-white/style.css' rel='stylesheet'>
|
16
|
-
<script src='http://rstacruz.github.io/flatdoc/v/0.8.0/theme-white/script.js'></script>
|
17
|
-
|
18
|
-
<!-- Meta -->
|
19
|
-
<meta content="Mina" property="og:title">
|
20
|
-
<meta content="Mina deployer tool." name="description">
|
21
|
-
|
22
|
-
<!-- Initializer -->
|
23
|
-
<script>
|
24
|
-
Flatdoc.run({
|
25
|
-
fetcher: location.hostname.match(/localhost/) ? Flatdoc.file('../Readme.md') : Flatdoc.github('nadarei/mina')
|
26
|
-
});
|
27
|
-
</script>
|
28
|
-
</head>
|
29
|
-
<body role='flatdoc'>
|
30
|
-
|
31
|
-
<div class='header'>
|
32
|
-
<div class='left'>
|
33
|
-
<h1>Mina</h1>
|
34
|
-
<ul>
|
35
|
-
<li><a href='https://github.com/nadarei/mina'>View on GitHub</a></li>
|
36
|
-
<li><a href='https://github.com/nadarei/mina/issues'>Issues</a></li>
|
37
|
-
</ul>
|
38
|
-
</div>
|
39
|
-
<div class='right'>
|
40
|
-
<!-- GitHub buttons: see http://ghbtns.com -->
|
41
|
-
<iframe src="http://ghbtns.com/github-btn.html?user=nadarei&repo=mina&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>
|
42
|
-
</div>
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<div class='content-root'>
|
46
|
-
<div class='menubar'>
|
47
|
-
<div class='menu section' role='flatdoc-menu'></div>
|
48
|
-
</div>
|
49
|
-
<div role='flatdoc-content' class='content'></div>
|
50
|
-
</div>
|
51
|
-
|
52
|
-
</body>
|
53
|
-
</html>
|
@@ -1,23 +0,0 @@
|
|
1
|
-
3rd party modules
|
2
|
-
------
|
3
|
-
|
4
|
-
* [mina-rollbar](https://github.com/code-lever/mina-rollbar)
|
5
|
-
* [mina-stack](https://github.com/div/mina-stack)
|
6
|
-
* [mina-rsync](https://github.com/moll/mina-rsync)
|
7
|
-
* [mina-sidekiq](https://github.com/Mic92/mina-sidekiq)
|
8
|
-
* [mina-delayed_job](https://github.com/d4be4st/mina-delayed_job)
|
9
|
-
* [mina-nginx](https://github.com/hbin/mina-nginx)
|
10
|
-
* [mina-newrelic](https://github.com/navinpeiris/mina-newrelic)
|
11
|
-
* [mina-rbenv-addons](https://github.com/stas/mina-rbenv-addons)
|
12
|
-
* [mina-multistage](https://github.com/endoze/mina-multistage)
|
13
|
-
* [mina-s3](https://github.com/stas/mina-s3)
|
14
|
-
* [mina-scp](https://github.com/adie/mina-scp)
|
15
|
-
* [mina-hooks](https://github.com/elskwid/mina-hooks)
|
16
|
-
* [mina-slack](https://github.com/TAKAyukiatkwsk/mina-slack)
|
17
|
-
* [mina-cakephp](https://github.com/mobvox/mina-cakephp)
|
18
|
-
* [mina-unicorn](https://github.com/openteam/mina-unicorn)
|
19
|
-
* [mina-puma](https://github.com/sandelius/mina-puma)
|
20
|
-
* [mina-mercurial](https://github.com/rainlabs/mina-mercurial)
|
21
|
-
* [mina-faye](https://github.com/NingenUA/mina-faye)
|
22
|
-
* [mina-clockwork](https://github.com/907th/mina-clockwork)
|
23
|
-
* [mina-ftp](https://github.com/stas/mina-ftp)
|
data/support/to_md.rb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
c = /(?:#|\/\/)/ # Comment prefix
|
3
|
-
lang = "ruby" # Default language
|
4
|
-
blocks = STDIN.read.scan(/(?:^[ \t]*#{c} [^\n]*\n)+/) # Read contiguous comments
|
5
|
-
blocks.map! { |s| s.gsub!(/(?:^|\n)+[ \t]*#{c} /, "\n") } # Strip out prefixes
|
6
|
-
|
7
|
-
# Code blocks
|
8
|
-
md = blocks.join("")
|
9
|
-
md.gsub!(/((?:^ .*\n+)+)/) { |f| "~~~ #{lang}\n" + f.gsub(/^ /, '').gsub(/\s*$/, '') + "\n~~~\n\n" }
|
10
|
-
|
11
|
-
puts md
|