Module: Postmarkdown::Util
- Defined in:
- lib/postmarkdown/util.rb
Class Method Summary collapse
Class Method Details
.app_name ⇒ Object
3 4 5 |
# File 'lib/postmarkdown/util.rb', line 3 def self.app_name Rails.application.class.name.split('::')[0..-2].join.titleize end |
.git_config(name) ⇒ Object
7 8 9 10 |
# File 'lib/postmarkdown/util.rb', line 7 def self.git_config(name) value = `git config --get #{name} 2> /dev/null` value.chomp if $?.success? end |