Class: Shoestring::Pow
Instance Attribute Summary collapse
-
#host_name ⇒ Object
readonly
Returns the value of attribute host_name.
Instance Method Summary collapse
- #check ⇒ Object
-
#initialize(host_name = `basename $PWD`) ⇒ Pow
constructor
A new instance of Pow.
Methods inherited from Base
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_name ⇒ Object (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
#check ⇒ Object
9 10 11 12 |
# File 'lib/shoestring/pow.rb', line 9 def check install_pow system("powder link #{host_name}") end |