Archive for December, 2008

In trying to make some of my Capistrano tasks configurable yet having sensible defaults, I was looking for a way to set default values if the user presses enter without keying in any values for the Capistrano::CLI.ui.ask prompt. Turns out the “ask” method actually comes from a different project, HighLine. Looking at that docs provided the answer, example below.

#allows you to key in a date in YYYY-MM-DD format, if nothing is provided, defaults to todays date.

set(:dump_date) do
Capistrano::CLI.ui.ask(”Enter date for  dump: “) {|q| q.default = “#{Date.today.year}-#{Date.today.month}-#{sprintf(’%02d’,Date.today.day)}” }
end

  • Viagra online
  • Order cheap cialis
  • Buy viagra no prescription
  • Cialis online
  • Buy generic cialis
  • Order propecia no prescription
  • Cheap propecia online
  • Propecia online pharmacy
  • Order levitra online
  • Cheap price cialis
  • Online pharmacy levitra
  • Buy viagra online
  • Buy discount levitra
  • Cheap cialis online
  • Propecia hair loss