eycap 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/Manifest.txt +1 -0
- data/lib/eycap.rb +1 -1
- data/lib/eycap/recipes.rb +1 -0
- data/lib/eycap/recipes/ssl.rb +15 -0
- metadata +4 -3
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/lib/eycap.rb
CHANGED
data/lib/eycap/recipes.rb
CHANGED
@@ -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.
|
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:
|
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.
|
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
|