public
Rubygem
Description: Don't mind this, go to http://github.com/integrity/integrity
Homepage: http://integrityapp.com
Clone URL: git://github.com/foca/integrity.git
Edit Thor descriptions so that they display the command name in help output
wilson (author)
Thu Nov 20 08:48:37 -0800 2008
commit  5a84bd67b5207ead17fc60296e02bb2f7b8dc42a
tree    4195e75172bf5e983bfd30b355da48015492f40f
parent  2f555508099d2c47877e240306fd66ca4b72cae6
...
7
8
9
10
11
 
 
12
13
14
 
15
16
17
...
19
20
21
22
 
23
24
25
26
27
28
 
29
30
31
 
32
33
34
35
36
37
 
38
39
40
41
42
43
 
44
45
46
...
58
59
60
61
 
62
63
64
...
7
8
9
 
 
10
11
12
13
 
14
15
16
17
...
19
20
21
 
22
23
24
25
26
27
 
28
29
30
 
31
32
33
34
35
36
 
37
38
39
40
41
42
 
43
44
45
46
...
58
59
60
 
61
62
63
64
0
@@ -7,11 +7,11 @@ require File.dirname(__FILE__) + "/../lib/integrity"
0
 class WithIntegrity < Thor
0
   include FileUtils
0
 
0
-  desc "Install integrity at PATH", 
0
-       "Copy template files at PATH. After this, edit the files to your convenience"
0
+  desc "install [PATH]",
0
+       "Copy template files to PATH. Next, go there and edit them."
0
   def install(path)
0
     @root = File.expand_path(path)
0
-    
0
+
0
     create_dir_structure
0
     copy_template_files
0
     edit_template_files
0
@@ -19,28 +19,28 @@ class WithIntegrity < Thor
0
     after_setup_message
0
   end
0
 
0
-  desc "Create database based on the config file at CONFIG",
0
+  desc "create_db [CONFIG]",
0
        "Checks the `database_uri` in CONFIG and creates and bootstraps a database for integrity"
0
   def create_db(config)
0
     Integrity.new(config)
0
     DataMapper.auto_migrate!
0
   end
0
-  
0
+
0
   private
0
     attr_reader :root
0
-    
0
+
0
     def create_dir_structure
0
       mkdir_p root
0
       mkdir_p root / "builds"
0
       mkdir_p root / "log"
0
     end
0
-    
0
+
0
     def copy_template_files
0
       cp Integrity.root / "config" / "config.sample.ru",  root / "config.ru"
0
       cp Integrity.root / "config" / "config.sample.yml", root / "config.yml"
0
       cp Integrity.root / "config" / "thin.sample.yml",   root / "thin.yml"
0
     end
0
-    
0
+
0
     def edit_template_files
0
       edit_integrity_configuration
0
       edit_thin_configuration
0
@@ -58,7 +58,7 @@ class WithIntegrity < Thor
0
       config.gsub!(%r(/apps/integrity), root)
0
       File.open(root / 'thin.yml', 'w') { |f| f.puts config }
0
     end
0
-  
0
+
0
     def after_setup_message
0
       puts
0
       puts %Q(Awesome! Integrity was installed successfully!)

Comments