Class: Strapper::Recipes::Pow
- Inherits:
-
Strapper::Recipe
- Object
- Strapper::Recipe
- Strapper::Recipes::Pow
- Defined in:
- lib/strapper/recipes/pow.rb
Instance Method Summary collapse
Methods inherited from Strapper::Recipe
Constructor Details
This class inherits a constructor from Strapper::Recipe
Instance Method Details
#installed? ⇒ Boolean
7 8 9 |
# File 'lib/strapper/recipes/pow.rb', line 7 def installed? File.directory?(File.("~/Library/Application\ Support/Pow")) end |
#run ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/strapper/recipes/pow.rb', line 11 def run if installed? puts "Pow is already installed" else puts "Installing pow" `curl get.pow.cx | sh` end end |