Class: Mutx::Base
- Inherits:
-
Thor
- Object
- Thor
- Mutx::Base
- Defined in:
- lib/mutx.rb
Instance Method Summary collapse
- #bye ⇒ Object
- #create_alert(name) ⇒ Object
- #help ⇒ Object
- #install ⇒ Object
- #reset ⇒ Object
- #reset_tasks ⇒ Object
- #restart ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Instance Method Details
#bye ⇒ Object
91 92 93 94 95 |
# File 'lib/mutx.rb', line 91 def bye if yes? "Are you sure to say bye to Mutx? (yes/no)" Mutx::Commands.bye end end |
#create_alert(name) ⇒ Object
86 87 88 |
# File 'lib/mutx.rb', line 86 def create_alert(name) Mutx::Commands.create_alert(name) end |
#help ⇒ Object
43 44 45 |
# File 'lib/mutx.rb', line 43 def help Mutx::Commands.help end |
#install ⇒ Object
48 49 50 |
# File 'lib/mutx.rb', line 48 def install Mutx::Commands.install end |
#reset ⇒ Object
74 75 76 77 78 |
# File 'lib/mutx.rb', line 74 def reset if yes? "Are you sure to reset all register? (yes/no)" Mutx::Commands.reset end end |
#reset_tasks ⇒ Object
81 82 83 |
# File 'lib/mutx.rb', line 81 def reset_tasks Mutx::Commands.reset_tasks end |
#restart ⇒ Object
69 70 71 |
# File 'lib/mutx.rb', line 69 def restart Mutx::Commands.restart end |
#start ⇒ Object
54 55 56 57 58 59 60 61 |
# File 'lib/mutx.rb', line 54 def start if Dir.exist? "#{Dir.pwd}/mutx" Mutx::Support::Log.start Mutx::Commands.start(["nodemon"]) else puts "Could not find mutx folder on root project folder. You can use `mutx install`".red end end |
#stop ⇒ Object
64 65 66 |
# File 'lib/mutx.rb', line 64 def stop Mutx::Commands.stop end |