Sha256: cc93cb093f9daf634bd9ad2f485c50f50b78061721a820290708a5adc9a8aec7
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
module Souls class CLI < Thor desc "server", "Run SOULs APP" method_option :all, type: :boolean, alias: "--all", default: false, desc: "Run All API & Workers" def server if options[:all] Dir.chdir(Souls.get_mother_path.to_s) do system("foreman start -f Procfile.dev") end else current_dir = FileUtils.pwd.split("/").last system("foreman start -f Procfile.dev") puts("GraphQL Playground is running on\n\nhttp://localhost:4000/playground") if current_dir == "api" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
souls-1.0.2 | lib/souls/cli/server/index.rb |