recipiez 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # Deployment Recipiez
2
+
3
+ A collection of capistrano recipes for doing a whole host of things to servers.
4
+
5
+ * Apache vhosts
6
+ * Logrotate
7
+ * Monit
8
+ * Nginx Vhost
9
+ * Database syncing
10
+ * Rsyncing
11
+ * Chef
12
+ * Php Vhost
13
+ * Thin Setup
14
+ * Node js deployment
15
+
16
+ ## Installation
17
+
18
+ This is released as a gem on rubygems.org.
19
+
20
+ gem install recipiez
21
+
22
+ In your capistrano deploy.rb
23
+
24
+ require 'recipiez/capistrano'
25
+
26
+ Now you will have access to all the cool recipies that I use on a daily basis.
27
+
28
+
29
+ ## Bundler
30
+
31
+ Often even in non-ruby projects I use Bundler when running capistrano. Add this to your Gemfile
32
+
33
+ gem 'recipiez', :require => false
@@ -0,0 +1,3 @@
1
+ module Recipiez
2
+ VERSION = '0.1.5'
3
+ end
data/recipes/ssl.rb ADDED
@@ -0,0 +1,33 @@
1
+ Capistrano::Configuration.instance(true).load do
2
+
3
+ namespace :ssl do
4
+
5
+ desc "Uploads certificates to the server, default to /etc/certs"
6
+ task :upload_certificate_pairs do
7
+
8
+ _cset :base_cert_path, "/etc/certs"
9
+ _cset :ssl_cert_path, ""
10
+ _cset :ssl_key_path, ""
11
+
12
+
13
+ put File.read(ssl_cert_path), File.basename(ssl_cert_path)
14
+ put File.read(ssl_key_path), File.basename(ssl_key_path)
15
+
16
+ begin
17
+ sudo "mkdir #{base_cert_path}"
18
+ rescue
19
+ # ignore
20
+ end
21
+
22
+ sudo "mv #{File.basename(ssl_cert_path)} #{base_cert_path}/#{File.basename(ssl_cert_path)}"
23
+ sudo "mv #{File.basename(ssl_key_path)} #{base_cert_path}/#{File.basename(ssl_key_path)}"
24
+
25
+
26
+ end
27
+
28
+ end
29
+
30
+
31
+
32
+
33
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recipiez
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alastair Brunton
@@ -58,11 +58,12 @@ extra_rdoc_files: []
58
58
  files:
59
59
  - .gitignore
60
60
  - MIT-LICENSE
61
- - README.textile
61
+ - README.md
62
62
  - lib/activecollab_notifier.rb
63
63
  - lib/basecamp.rb
64
64
  - lib/basecamp_notifier.rb
65
65
  - lib/recipiez/capistrano.rb
66
+ - lib/recipiez/version.rb
66
67
  - recipes/apache.rb
67
68
  - recipes/chef.rb
68
69
  - recipes/deployment_recipiez.rb
@@ -71,6 +72,7 @@ files:
71
72
  - recipes/nginx.rb
72
73
  - recipes/node.rb
73
74
  - recipes/render.rb
75
+ - recipes/ssl.rb
74
76
  - recipes/templates/apache_monit.erb
75
77
  - recipes/templates/logrotate.erb
76
78
  - recipes/templates/monit_config.erb
data/README.textile DELETED
@@ -1,13 +0,0 @@
1
- h1. Deployment Recipiez
2
-
3
- A collection of capistrano recipes for doing a whole host of things to servers.
4
-
5
- * Apache vhosts
6
- * Logrotate
7
- * Monit
8
- * Nginx Vhost
9
- * Database syncing
10
- * Rsyncing
11
- * Chef
12
- * Php Vhost
13
- * Thin Setup