Top Level Namespace
Defined Under Namespace
Modules: SSHKit
Instance Method Summary collapse
-
#application ⇒ Object
Keeps only a..zA..Z0..9_.
- #needs_implementation ⇒ Object
- #unicorn_name ⇒ Object
Instance Method Details
#application ⇒ Object
Keeps only a..zA..Z0..9_
27 28 29 |
# File 'lib/recipes.rb', line 27 def application @application ||= fetch(:application).gsub(/\W/,'') end |
#needs_implementation ⇒ Object
22 23 24 |
# File 'lib/recipes.rb', line 22 def needs_implementation puts "Needs to be implemented +_+" end |
#unicorn_name ⇒ Object
6 7 8 |
# File 'lib/recipes/unicorn.rb', line 6 def unicorn_name fetch(:unicorn_name) || [:unicorn, application].join('_') end |