lib/capucine.rb in capucine-0.2.9 vs lib/capucine.rb in capucine-0.2.10
- old
+ new
@@ -55,62 +55,23 @@
elsif %w{u update}.include?(main)
self.settings.set_user_config_file(config_or_name)
self.tools.update
+ elsif %w{h help}.include?(main)
+ self.help
else
self.help
end
return self
end
def help
- puts "
-
-Capucine on Github : http://github.com/damln/Capucine
-
-- Create
-
- cd my_current_project/
-
- # Or
-
- capucine new my_app_name
- cd my_app_name/
-
-- Initialize
-
- # Edit the capucine.yaml file.
- # Or :
-
- capucine init
- capucine init:django
-
-- Compile Once
-
- capucine compile
- capucine compile:sass
- capucine compile:coffee
- capucine compile:incloudr
-
-- Or Watch (Stop with Ctrl + C)
-
- capucine watch
- capucine watch:sass
- capucine watch:coffee
-
-- Search libs :
-
- capucine js:list
- capucine js:list:npm # (comming)
-
-
- capucine js:search jquery
- capucine js:search:npm jquery # (comming)
-
-
- "
+ version = File.open(File.join(self.settings.root_dir, 'VERSION')).read
+ template_file = File.join self.settings.content_dir, 'templates', 'cmd_help.erb'
+ result = self.tools.render_template template_file, version
+ puts result
end
end
end