Sha256: e691f585ecbbf457a0e466b816d6d3cf4b644ad99f72b7e88933c7b628c6c7db

Contents?: true

Size: 899 Bytes

Versions: 15

Compression:

Stored size: 899 Bytes

Contents

# frozen_string_literal: true

require "jets/app_loader"

# If we are inside a Jets application this method performs an exec and thus
# the rest of this script is not run.
# exec_app either runs bin/jets or an inline version of it.
Jets::AppLoader.exec_app

# Allow running jets with local source code when bin/jets does not exist
# Useful for development: jets build
# Also allows jets to work without a bin/jets file in the project.
if File.exist?("config/application.rb")
  APP_PATH = File.expand_path("config/application", Dir.pwd)
  require "jets"
  require "jets/commands"
  return
end

# The rest of the script runs if outside of Jets application. IE:
# jets new demo

require "jets/ruby_version_check"
Signal.trap("INT") { puts; exit(1) }

require "jets/command"

if ARGV.first == "plugin"
  ARGV.shift
  Jets::Command.invoke :plugin, ARGV
else
  Jets::Command.invoke :application, ARGV
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jets-5.0.13 lib/jets/cli.rb
jets-5.0.12 lib/jets/cli.rb
jets-5.0.11 lib/jets/cli.rb
jets-5.0.10 lib/jets/cli.rb
jets-5.0.9 lib/jets/cli.rb
jets-5.0.8 lib/jets/cli.rb
jets-5.0.7 lib/jets/cli.rb
jets-5.0.6 lib/jets/cli.rb
jets-5.0.5 lib/jets/cli.rb
jets-5.0.4 lib/jets/cli.rb
jets-5.0.3 lib/jets/cli.rb
jets-5.0.2 lib/jets/cli.rb
jets-5.0.1 lib/jets/cli.rb
jets-5.0.0 lib/jets/cli.rb
jets-5.0.0.beta1 lib/jets/cli.rb