class Shoestring::Pow
Attributes
host_name[R]
Public Class Methods
new(host_name = `basename $PWD`)
click to toggle source
# File lib/shoestring/pow.rb, line 5 def initialize(host_name = `basename $PWD`) @host_name = host_name end
Public Instance Methods
check()
click to toggle source
# File lib/shoestring/pow.rb, line 9 def check install_pow system("powder link #{host_name}") end
Private Instance Methods
install_pow()
click to toggle source
# File lib/shoestring/pow.rb, line 16 def install_pow unless system("ps x | grep '[p]ow' > /dev/null") puts "Installing pow..." system("powder install") end end