Class: Strapper::Recipes::Pow

Inherits:
Strapper::Recipe show all
Defined in:
lib/strapper/recipes/pow.rb

Instance Method Summary collapse

Methods inherited from Strapper::Recipe

#initialize, register_keyword

Constructor Details

This class inherits a constructor from Strapper::Recipe

Instance Method Details

#installed?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/strapper/recipes/pow.rb', line 7

def installed?
  File.directory?(File.expand_path("~/Library/Application\ Support/Pow"))
end

#runObject



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