Class: Mutx::Base

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

Instance Method Summary collapse

Instance Method Details

#byeObject



83
84
85
86
87
# File 'lib/mutx.rb', line 83

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

#helpObject



40
41
42
# File 'lib/mutx.rb', line 40

def help
  Mutx::Commands.help
end

#installObject



45
46
47
# File 'lib/mutx.rb', line 45

def install
  Mutx::Commands.install
end

#resetObject



71
72
73
74
75
# File 'lib/mutx.rb', line 71

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

#reset_tasksObject



78
79
80
# File 'lib/mutx.rb', line 78

def reset_tasks
  Mutx::Commands.reset_tasks
end

#restartObject



66
67
68
# File 'lib/mutx.rb', line 66

def restart
  Mutx::Commands.restart
end

#startObject



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

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



61
62
63
# File 'lib/mutx.rb', line 61

def stop
  Mutx::Commands.stop
end