Top Level Namespace
Defined Under Namespace
Modules: Quorum, Trollop, Workers
Instance Method Summary collapse
-
#date ⇒ Object
- lib/trollop.rb – trollop command-line processing library Author
- William Morgan (mailto: [email protected]) Copyright
- Copyright 2007 William Morgan License
-
the same terms as ruby itself.
-
#k ⇒ Object
Sub %RAILS_ROOT ##.
Instance Method Details
#date ⇒ Object
lib/trollop.rb – trollop command-line processing library
- Author
-
William Morgan (mailto: [email protected])
- Copyright
-
Copyright 2007 William Morgan
- License
-
the same terms as ruby itself
6 |
# File 'lib/generators/templates/trollop.rb', line 6 require 'date' |
#k ⇒ Object
Sub %RAILS_ROOT ##
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/generators/templates/quorum_initializer.rb', line 12 settings.keys.each do |k| if settings[k.to_s].respond_to?(:each_value) settings[k.to_s].each_value do |v| if v.kind_of?(String) v.to_s.gsub!('%{RAILS_ROOT}', ::Rails.root.to_s) end end else if settings[k.to_s].kind_of?(String) settings[k.to_s].gsub!('%{RAILS_ROOT}', ::Rails.root.to_s) end end end |