Class: Kaya::Base
- Inherits:
-
Thor
- Object
- Thor
- Kaya::Base
- Defined in:
- lib/kaya.rb
Instance Method Summary collapse
- #bye ⇒ Object
- #help ⇒ Object
- #install ⇒ Object
- #reset ⇒ Object
- #reset_suites ⇒ Object
- #restart ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Instance Method Details
#bye ⇒ Object
169 170 171 172 173 |
# File 'lib/kaya.rb', line 169 def bye if yes? "Are you sure to say bye to Kaya? (yes/no)" Kaya::Commands.bye end end |
#reset ⇒ Object
157 158 159 160 161 |
# File 'lib/kaya.rb', line 157 def reset if yes? "Are you sure to reset all register? (yes/no)" Kaya::Commands.reset end end |
#reset_suites ⇒ Object
164 165 166 |
# File 'lib/kaya.rb', line 164 def reset_suites Kaya::Commands.reset_suites end |
#start ⇒ Object
133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/kaya.rb', line 133 def start if Dir.exist? "#{Dir.pwd}/kaya" $K_LOG = Logger.new("#{Dir.pwd}/kaya/kaya_log",1,1024*1024) Kaya::Commands.start(["nodemon"]) else puts " Could not find kaya folder on root project folder. You can use `kaya install` ".red end end |