capigen 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Capfile +6 -4
- data/History.txt +4 -0
- data/lib/capigen/profiles.rb +1 -1
- data/lib/capigen/templates.rb +1 -1
- data/lib/capigen/version.rb +1 -1
- data/website/index.html +1 -1
- metadata +1 -1
data/Capfile
CHANGED
@@ -4,11 +4,10 @@
|
|
4
4
|
|
5
5
|
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
|
6
6
|
|
7
|
-
|
8
|
-
load "recipes/bootstrap/patch.rb"
|
7
|
+
require 'lib/capigen'
|
9
8
|
|
10
9
|
# Load recipes
|
11
|
-
Dir[
|
10
|
+
Dir["lib/recipes/**/*.rb"].each { |recipe| load recipe }
|
12
11
|
|
13
12
|
require 'erb'
|
14
13
|
|
@@ -18,5 +17,8 @@ set :user, Proc.new { Capistrano::CLI.ui.ask('Bootstrap user: ') }
|
|
18
17
|
# Roles
|
19
18
|
role :base, Capistrano::CLI.ui.ask('Server: ')
|
20
19
|
|
20
|
+
# Profile
|
21
|
+
set :profile, Proc.new { load choose_profile }
|
21
22
|
|
22
|
-
|
23
|
+
# Reset the password var
|
24
|
+
reset_password
|
data/History.txt
CHANGED
data/lib/capigen/profiles.rb
CHANGED
data/lib/capigen/templates.rb
CHANGED
@@ -2,7 +2,7 @@ module Capigen::Templates
|
|
2
2
|
|
3
3
|
# Root of templates path
|
4
4
|
def template_root
|
5
|
-
@template_root ||= File.expand_path(File.dirname(__FILE__) + "
|
5
|
+
@template_root ||= File.expand_path(File.dirname(__FILE__) + "/../templates")
|
6
6
|
end
|
7
7
|
|
8
8
|
# Get full template path
|
data/lib/capigen/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>capigen</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/capigen"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/capigen" class="numbers">0.1.
|
36
|
+
<a href="http://rubyforge.org/projects/capigen" class="numbers">0.1.3</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘capigen’</h1>
|
39
39
|
|