class Hooligan::Cli::DevCommand

Public Instance Methods

execute() click to toggle source
# File lib/hooligan/cli/dev_command.rb, line 8
def execute
  Dir.chdir Project.hooligan_dir

  puts 'WARNING: You need to change the kubernetes context manually first!'
  puts 'Press ^C unless you are in correct Kubernetes context, sleeping 3 seconds'
  sleep 3

  case profile when 'exo'
    puts "Serving at http://#{Project.project_name}.qa-aws-eu-central-1-1.exo.planeetta.net"
    exec 'skaffold dev -p exo'
  when 'local'
    puts "Serving at http://#{Project.project_name}.localtest.me"
    exec 'skaffold dev'
  else
    raise "Unknown profile: #{profile}"
  end
end