crafterm / sprinkle

Sprinkle is a software provisioning tool you can use to build remote servers with. eg. to install a Rails, or Sinatra stack on a brand new slice directly after its been created

This URL has Read+Write access

sprinkle / lib / sprinkle / extensions / string.rb
100644 10 lines (8 sloc) 0.174 kb
1
2
3
4
5
6
7
8
9
10
class String #:nodoc:
  
  # REVISIT: what chars shall we allow in task names?
  def to_task_name
    s = downcase
    s.gsub!(/-/, '_') # all - to _ chars
    s
  end
  
end