Class: Rubber::Commands::Vulcanize
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Rubber::Commands::Vulcanize
- Defined in:
- lib/rubber/commands/vulcanize.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.description ⇒ Object
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 |
# File 'lib/rubber/commands/vulcanize.rb', line 19 def self.description # Format templates into comma-separated paragraph with limt of 70 characters per line lines = [''] VulcanizeThor.valid_templates.each do |template_name| line = lines.last if line.size == 0 line << template_name elsif line.size + template_name.size > 68 line << ',' lines << template_name # new line else line << ", " + template_name end end Rubber::Util.clean_indent(<<-EOS Prepares the rails application for deploying with rubber by installing a sample rubber configuration template. e.g. rubber vulcanize complete_passenger_postgresql where TEMPLATE is one of: #{lines.join("\n")} EOS ) end |
.subcommand_description ⇒ Object
15 16 17 |
# File 'lib/rubber/commands/vulcanize.rb', line 15 def self.subcommand_description "Installs rubber templates into project" end |
.subcommand_name ⇒ Object
11 12 13 |
# File 'lib/rubber/commands/vulcanize.rb', line 11 def self.subcommand_name "vulcanize" end |
Instance Method Details
#execute ⇒ Object
61 62 63 64 65 66 67 68 |
# File 'lib/rubber/commands/vulcanize.rb', line 61 def execute v = VulcanizeThor.new([], :force => force?, :pretend => pretend?, :quiet => quiet?, :skip => skip?) v.vulcanize(template_list) end |