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/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&amp;repo=mina&amp;type=watch&amp;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