eycap 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,6 @@
1
+ == 0.5.3 / 2009-12-17
2
+ * created task cap ssl:create
3
+
1
4
  == 0.5.2 / 2009-12-17
2
5
  * renamed task cap slice:tail_production_logs to cap slice:tail_environment_logs
3
6
 
@@ -25,5 +25,6 @@ lib/eycap/recipes/templates/maintenance.rhtml
25
25
  lib/eycap/recipes/tomcat.rb
26
26
  lib/eycap/recipes/passenger.rb
27
27
  lib/eycap/recipes/apache.rb
28
+ lib/eycap/recipes/ssl.rb
28
29
  test/test_eycap.rb
29
30
  test/test_helper.rb
@@ -1,3 +1,3 @@
1
1
  module Eycap
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
@@ -16,6 +16,7 @@ require 'eycap/recipes/juggernaut'
16
16
  require 'eycap/recipes/passenger'
17
17
  require 'eycap/recipes/apache'
18
18
  require 'eycap/recipes/bundler'
19
+ require 'eycap/recipes/ssl'
19
20
 
20
21
  Capistrano::Configuration.instance(:must_exist).load do
21
22
  default_run_options[:pty] = true if respond_to?(:default_run_options)
@@ -0,0 +1,15 @@
1
+ Capistrano::Configuration.instance(:must_exist).load do
2
+
3
+ namespace :ssl do
4
+ desc "create csr and key for ssl certificates"
5
+ task :create, :roles => :app, :except => {:no_release => true} do
6
+ sudo "mkdir -p /data/ssl/"
7
+ set(:length) { Capistrano::CLI.ui.ask("key length (1024 or 2048): ") }
8
+ set(:country) { Capistrano::CLI.ui.ask("Country Code (2 letters): ") }
9
+ set(:state) { Capistrano::CLI.ui.ask("State/Province: ") }
10
+ set(:city) { Capistrano::CLI.ui.ask("City: ") }
11
+ set(:domain) { Capistrano::CLI.ui.ask("Common Name (domain): ") }
12
+ run "cd /data/ssl/ && openssl req -new -nodes -days 365 -newkey rsa:#{length} -subj '/C=#{country}/ST=#{state}/L=#{city}/CN=#{domain}' -keyout #{domain}.com.key -out #{domain}.com.csr"
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eycap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Engine Yard
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-17 00:00:00 -07:00
12
+ date: 2010-01-27 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.4.0
33
+ version: 2.3.3
34
34
  version:
35
35
  description: A bunch of useful recipes to help deployment to Engine Yard private cloud slices
36
36
  email: appsupport@engineyard.com
@@ -70,6 +70,7 @@ files:
70
70
  - lib/eycap/recipes/tomcat.rb
71
71
  - lib/eycap/recipes/passenger.rb
72
72
  - lib/eycap/recipes/apache.rb
73
+ - lib/eycap/recipes/ssl.rb
73
74
  - test/test_eycap.rb
74
75
  - test/test_helper.rb
75
76
  has_rdoc: true