Class: Kaya::Base

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

Instance Method Summary collapse

Instance Method Details

#byeObject



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

#helpObject



122
123
124
# File 'lib/kaya.rb', line 122

def help
  Kaya::Commands.help
end

#installObject



127
128
129
# File 'lib/kaya.rb', line 127

def install
  Kaya::Commands.install
end

#resetObject



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_suitesObject



164
165
166
# File 'lib/kaya.rb', line 164

def reset_suites
  Kaya::Commands.reset_suites
end

#restartObject



152
153
154
# File 'lib/kaya.rb', line 152

def restart
  Kaya::Commands.restart
end

#startObject



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(options["nodemon"])
  else
    puts "

Could not find kaya folder on root project folder. You can use `kaya install`

".red
  end
end

#stopObject



147
148
149
# File 'lib/kaya.rb', line 147

def stop
  Kaya::Commands.stop
end