unicorn_deployer 0.0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +17 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/javascripts/unicorn_deployer/application.js +16 -0
  6. data/app/assets/stylesheets/unicorn_deployer/application.css +13 -0
  7. data/app/controllers/unicorn_deployer/application_controller.rb +4 -0
  8. data/app/helpers/unicorn_deployer/application_helper.rb +4 -0
  9. data/app/views/layouts/unicorn_deployer/application.html.erb +14 -0
  10. data/config/environment.rb +0 -0
  11. data/config/nginx.conf +27 -0
  12. data/config/routes.rb +2 -0
  13. data/config/unicorn.rb +10 -0
  14. data/config/unicorn_init.sh +85 -0
  15. data/lib/generators/deployer/USAGE +8 -0
  16. data/lib/generators/deployer/deployer_generator.rb +29 -0
  17. data/lib/generators/deployer/templates/deploy.rb +37 -0
  18. data/lib/generators/deployer/templates/nginx.conf.erb +27 -0
  19. data/lib/generators/deployer/templates/unicorn.rb.erb +10 -0
  20. data/lib/generators/deployer/templates/unicorn_init.sh.erb +85 -0
  21. data/lib/tasks/unicorn_deployer_tasks.rake +4 -0
  22. data/lib/unicorn_deployer.rb +4 -0
  23. data/lib/unicorn_deployer/engine.rb +5 -0
  24. data/lib/unicorn_deployer/version.rb +3 -0
  25. data/test/dummy/README.rdoc +28 -0
  26. data/test/dummy/Rakefile +6 -0
  27. data/test/dummy/app/assets/javascripts/application.js +16 -0
  28. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  29. data/test/dummy/app/controllers/application_controller.rb +5 -0
  30. data/test/dummy/app/helpers/application_helper.rb +2 -0
  31. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  32. data/test/dummy/bin/bundle +3 -0
  33. data/test/dummy/bin/rails +4 -0
  34. data/test/dummy/bin/rake +4 -0
  35. data/test/dummy/config.ru +4 -0
  36. data/test/dummy/config/application.rb +23 -0
  37. data/test/dummy/config/boot.rb +9 -0
  38. data/test/dummy/config/database.yml +25 -0
  39. data/test/dummy/config/environment.rb +5 -0
  40. data/test/dummy/config/environments/development.rb +27 -0
  41. data/test/dummy/config/environments/production.rb +80 -0
  42. data/test/dummy/config/environments/test.rb +36 -0
  43. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  44. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  45. data/test/dummy/config/initializers/inflections.rb +16 -0
  46. data/test/dummy/config/initializers/mime_types.rb +5 -0
  47. data/test/dummy/config/initializers/secret_token.rb +12 -0
  48. data/test/dummy/config/initializers/session_store.rb +3 -0
  49. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  50. data/test/dummy/config/locales/en.yml +23 -0
  51. data/test/dummy/config/routes.rb +4 -0
  52. data/test/dummy/public/404.html +27 -0
  53. data/test/dummy/public/422.html +26 -0
  54. data/test/dummy/public/500.html +26 -0
  55. data/test/dummy/public/favicon.ico +0 -0
  56. data/test/integration/navigation_test.rb +10 -0
  57. data/test/test_helper.rb +15 -0
  58. data/test/unicorn_deployer_test.rb +7 -0
  59. metadata +191 -0
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount UnicornDeployer::Engine => "/unicorn_deployer"
4
+ end
@@ -0,0 +1,27 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style>
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ <p>If you are the application owner check the logs for more information.</p>
26
+ </body>
27
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style>
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style>
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ <p>If you are the application owner check the logs for more information.</p>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class UnicornDeployerTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, UnicornDeployer
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,191 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: unicorn_deployer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Ismail Akram
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-03-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 3.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 3.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: capistrano
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rvm-capistrano
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sqlite3
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: This is app which provides a generator to create unicorn and nginx config
70
+ files and some task of capistrano
71
+ email:
72
+ - rubyonrails3@gmail.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - app/assets/javascripts/unicorn_deployer/application.js
78
+ - app/assets/stylesheets/unicorn_deployer/application.css
79
+ - app/controllers/unicorn_deployer/application_controller.rb
80
+ - app/helpers/unicorn_deployer/application_helper.rb
81
+ - app/views/layouts/unicorn_deployer/application.html.erb
82
+ - config/environment.rb
83
+ - config/nginx.conf
84
+ - config/routes.rb
85
+ - config/unicorn.rb
86
+ - config/unicorn_init.sh
87
+ - lib/generators/deployer/deployer_generator.rb
88
+ - lib/generators/deployer/templates/deploy.rb
89
+ - lib/generators/deployer/templates/nginx.conf.erb
90
+ - lib/generators/deployer/templates/unicorn.rb.erb
91
+ - lib/generators/deployer/templates/unicorn_init.sh.erb
92
+ - lib/generators/deployer/USAGE
93
+ - lib/tasks/unicorn_deployer_tasks.rake
94
+ - lib/unicorn_deployer/engine.rb
95
+ - lib/unicorn_deployer/version.rb
96
+ - lib/unicorn_deployer.rb
97
+ - MIT-LICENSE
98
+ - Rakefile
99
+ - README.rdoc
100
+ - test/dummy/app/assets/javascripts/application.js
101
+ - test/dummy/app/assets/stylesheets/application.css
102
+ - test/dummy/app/controllers/application_controller.rb
103
+ - test/dummy/app/helpers/application_helper.rb
104
+ - test/dummy/app/views/layouts/application.html.erb
105
+ - test/dummy/bin/bundle
106
+ - test/dummy/bin/rails
107
+ - test/dummy/bin/rake
108
+ - test/dummy/config/application.rb
109
+ - test/dummy/config/boot.rb
110
+ - test/dummy/config/database.yml
111
+ - test/dummy/config/environment.rb
112
+ - test/dummy/config/environments/development.rb
113
+ - test/dummy/config/environments/production.rb
114
+ - test/dummy/config/environments/test.rb
115
+ - test/dummy/config/initializers/backtrace_silencers.rb
116
+ - test/dummy/config/initializers/filter_parameter_logging.rb
117
+ - test/dummy/config/initializers/inflections.rb
118
+ - test/dummy/config/initializers/mime_types.rb
119
+ - test/dummy/config/initializers/secret_token.rb
120
+ - test/dummy/config/initializers/session_store.rb
121
+ - test/dummy/config/initializers/wrap_parameters.rb
122
+ - test/dummy/config/locales/en.yml
123
+ - test/dummy/config/routes.rb
124
+ - test/dummy/config.ru
125
+ - test/dummy/public/404.html
126
+ - test/dummy/public/422.html
127
+ - test/dummy/public/500.html
128
+ - test/dummy/public/favicon.ico
129
+ - test/dummy/Rakefile
130
+ - test/dummy/README.rdoc
131
+ - test/integration/navigation_test.rb
132
+ - test/test_helper.rb
133
+ - test/unicorn_deployer_test.rb
134
+ homepage: https://github.com/rubyonrails3/unicorn_deployer
135
+ licenses: []
136
+ metadata: {}
137
+ post_install_message:
138
+ rdoc_options: []
139
+ require_paths:
140
+ - lib
141
+ required_ruby_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ required_rubygems_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - '>='
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ requirements: []
152
+ rubyforge_project:
153
+ rubygems_version: 2.0.3
154
+ signing_key:
155
+ specification_version: 4
156
+ summary: Adds necessary configuration files and capistrano tasks
157
+ test_files:
158
+ - test/dummy/app/assets/javascripts/application.js
159
+ - test/dummy/app/assets/stylesheets/application.css
160
+ - test/dummy/app/controllers/application_controller.rb
161
+ - test/dummy/app/helpers/application_helper.rb
162
+ - test/dummy/app/views/layouts/application.html.erb
163
+ - test/dummy/bin/bundle
164
+ - test/dummy/bin/rails
165
+ - test/dummy/bin/rake
166
+ - test/dummy/config/application.rb
167
+ - test/dummy/config/boot.rb
168
+ - test/dummy/config/database.yml
169
+ - test/dummy/config/environment.rb
170
+ - test/dummy/config/environments/development.rb
171
+ - test/dummy/config/environments/production.rb
172
+ - test/dummy/config/environments/test.rb
173
+ - test/dummy/config/initializers/backtrace_silencers.rb
174
+ - test/dummy/config/initializers/filter_parameter_logging.rb
175
+ - test/dummy/config/initializers/inflections.rb
176
+ - test/dummy/config/initializers/mime_types.rb
177
+ - test/dummy/config/initializers/secret_token.rb
178
+ - test/dummy/config/initializers/session_store.rb
179
+ - test/dummy/config/initializers/wrap_parameters.rb
180
+ - test/dummy/config/locales/en.yml
181
+ - test/dummy/config/routes.rb
182
+ - test/dummy/config.ru
183
+ - test/dummy/public/404.html
184
+ - test/dummy/public/422.html
185
+ - test/dummy/public/500.html
186
+ - test/dummy/public/favicon.ico
187
+ - test/dummy/Rakefile
188
+ - test/dummy/README.rdoc
189
+ - test/integration/navigation_test.rb
190
+ - test/test_helper.rb
191
+ - test/unicorn_deployer_test.rb