redde 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/.gitignore +1 -0
  2. data/README.md +6 -0
  3. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/page-header.sass +4 -1
  4. data/lib/generators/redde/photo/photo_generator.rb +35 -0
  5. data/lib/generators/redde/photo/templates/controller.rb +30 -0
  6. data/lib/generators/redde/photo/templates/create_photos.rb +13 -0
  7. data/lib/generators/redde/photo/templates/photo.rb +7 -0
  8. data/lib/generators/redde/photo/templates/photos/_photo.haml +5 -0
  9. data/lib/generators/redde/photo/templates/photos/_photos.haml +22 -0
  10. data/lib/generators/redde/photo/templates/photos/create.js.erb +1 -0
  11. data/lib/generators/redde/photo/templates/photos/destroy.js.erb +1 -0
  12. data/lib/generators/redde/photo/templates/uploader.rb +60 -0
  13. data/lib/redde/version.rb +1 -1
  14. data/lib/redde.rb +1 -1
  15. data/spec/generators/photo_generator_spec.rb +33 -0
  16. metadata +15 -35
  17. data/lib/generators/redde/deploy/deploy_generator.rb +0 -34
  18. data/lib/generators/redde/deploy/templates/Capfile +0 -4
  19. data/lib/generators/redde/deploy/templates/deploy.rb +0 -33
  20. data/lib/generators/redde/deploy/templates/recipes/base.rb +0 -16
  21. data/lib/generators/redde/deploy/templates/recipes/check.rb +0 -13
  22. data/lib/generators/redde/deploy/templates/recipes/database.rb +0 -66
  23. data/lib/generators/redde/deploy/templates/recipes/imagemagick.rb +0 -8
  24. data/lib/generators/redde/deploy/templates/recipes/memcached.rb +0 -10
  25. data/lib/generators/redde/deploy/templates/recipes/monit.rb +0 -35
  26. data/lib/generators/redde/deploy/templates/recipes/nginx.rb +0 -26
  27. data/lib/generators/redde/deploy/templates/recipes/nodejs.rb +0 -10
  28. data/lib/generators/redde/deploy/templates/recipes/postfix.rb +0 -37
  29. data/lib/generators/redde/deploy/templates/recipes/rbenv.rb +0 -17
  30. data/lib/generators/redde/deploy/templates/recipes/templates/database.yml.erb +0 -8
  31. data/lib/generators/redde/deploy/templates/recipes/templates/dkim-filter.conf.erb +0 -57
  32. data/lib/generators/redde/deploy/templates/recipes/templates/dkim-filter.defaults.erb +0 -11
  33. data/lib/generators/redde/deploy/templates/recipes/templates/dkim-keys.conf.erb +0 -2
  34. data/lib/generators/redde/deploy/templates/recipes/templates/gemrc.erb +0 -1
  35. data/lib/generators/redde/deploy/templates/recipes/templates/main.cf.erb +0 -43
  36. data/lib/generators/redde/deploy/templates/recipes/templates/memcached.erb +0 -47
  37. data/lib/generators/redde/deploy/templates/recipes/templates/monit_monitrc.erb +0 -21
  38. data/lib/generators/redde/deploy/templates/recipes/templates/monit_nginx.erb +0 -5
  39. data/lib/generators/redde/deploy/templates/recipes/templates/monit_unicorn.erb +0 -14
  40. data/lib/generators/redde/deploy/templates/recipes/templates/nginx_unicorn.erb +0 -28
  41. data/lib/generators/redde/deploy/templates/recipes/templates/unicorn.rb.erb +0 -36
  42. data/lib/generators/redde/deploy/templates/recipes/templates/unicorn_init.erb +0 -84
  43. data/lib/generators/redde/deploy/templates/recipes/unicorn.rb +0 -27
  44. data/spec/dummy/log/test.log +0 -53411
  45. data/spec/generators/deploy_generator_spec.rb +0 -29
@@ -1,29 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Redde::Generators::DeployGenerator do
4
- include GeneratorSpec::TestCase
5
- destination File.expand_path("../../../tmp", __FILE__)
6
- arguments %w(127.0.0.1 redde.ru)
7
-
8
- before(:all) do
9
- prepare_destination
10
- run_generator
11
- end
12
-
13
- after(:all) do
14
- FileUtils.rm_rf 'tmp'
15
- end
16
-
17
- describe "deploy" do
18
-
19
- it "creates a test initializer" do
20
- # check capfile and deploy.rb
21
- assert_file "Capfile"
22
- assert_file "config/deploy.rb"
23
-
24
- assert_directory "config/recipes"
25
- end
26
-
27
- end
28
-
29
- end