class Shoestring::PowDns
Attributes
port[R]
Public Class Methods
new(port = 3000)
click to toggle source
# File lib/shoestring/pow_dns.rb, line 5 def initialize(port = 3000) @port = port end
Public Instance Methods
check()
click to toggle source
# File lib/shoestring/pow_dns.rb, line 9 def check Shoestring::Generic.check('Pow DNS') do # config port for forman if installed %x(if [ -f Procfile ]; then echo "port: #{port}" > .foreman; fi) # Set up DNS through Pow %x(if [ -d ~/.pow ] then echo #{port} > ~/.pow/`basename $PWD` else echo "Pow is not set up but the team uses it for this project. Setup: http://goo.gl/RaDPO" fi) end end