Class: Mutx::Base

Inherits:
Thor
  • Object
show all
Defined in:
lib/mutx.rb

Instance Method Summary collapse

Instance Method Details

#byeObject



85
86
87
88
89
# File 'lib/mutx.rb', line 85

def bye
  if yes? "Are you sure to say bye to Mutx? (yes/no)"
    Mutx::Commands.bye
  end
end

#helpObject



42
43
44
# File 'lib/mutx.rb', line 42

def help
  Mutx::Commands.help
end

#installObject



47
48
49
# File 'lib/mutx.rb', line 47

def install
  Mutx::Commands.install
end

#resetObject



73
74
75
76
77
# File 'lib/mutx.rb', line 73

def reset
  if yes? "Are you sure to reset all register? (yes/no)"
    Mutx::Commands.reset
  end
end

#reset_tasksObject



80
81
82
# File 'lib/mutx.rb', line 80

def reset_tasks
  Mutx::Commands.reset_tasks
end

#restartObject



68
69
70
# File 'lib/mutx.rb', line 68

def restart
  Mutx::Commands.restart
end

#startObject



53
54
55
56
57
58
59
60
# File 'lib/mutx.rb', line 53

def start
  if Dir.exist? "#{Dir.pwd}/mutx"
    Mutx::Support::Log.start
    Mutx::Commands.start(options["nodemon"])
  else
    puts "Could not find mutx folder on root project folder. You can use `mutx install`".red
  end
end

#stopObject



63
64
65
# File 'lib/mutx.rb', line 63

def stop
  Mutx::Commands.stop
end