Class: Shoestring::Pow

Inherits:
Base
  • Object
show all
Defined in:
lib/shoestring/pow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

check

Constructor Details

#initialize(host_name = `basename $PWD`) ⇒ Pow

Returns a new instance of Pow.



5
6
7
# File 'lib/shoestring/pow.rb', line 5

def initialize(host_name = `basename $PWD`)
  @host_name = host_name
end

Instance Attribute Details

#host_nameObject (readonly)

Returns the value of attribute host_name.



3
4
5
# File 'lib/shoestring/pow.rb', line 3

def host_name
  @host_name
end

Instance Method Details

#checkObject



9
10
11
12
# File 'lib/shoestring/pow.rb', line 9

def check
  install_pow
  system("powder link #{host_name}")
end