Sha256: 0da88547ab280ef71d5e841f995901094ab6caa6835093705a0baab187f51806
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
#!/usr/bin/env ruby # frozen_string_literal: true STDOUT.sync = true $LOAD_PATH.unshift File.expand_path("../../bridgetown/lib", __dir__) # Used by commands/automations require "active_support" require "active_support/core_ext/array/extract_options" require "active_support/core_ext/string/strip" require "active_support/core_ext/string/indent" require "bridgetown" Bridgetown::PluginManager.require_from_bundler # Support NO_COLOR: https://no-color.org # TODO: need to change behavior of Colorator gem ENV["THOR_SHELL"] = "Basic" if ENV["NO_COLOR"] output_version = if ARGV[0] == "-v" || ARGV[0] == "--version" puts "bridgetown #{Bridgetown::VERSION} \"#{Bridgetown::CODE_NAME}\"" true end if env_index = ARGV.index { |arg| arg == "-e" } # rubocop:disable Lint/AssignmentInCondition env = ARGV[env_index + 1] ENV["BRIDGETOWN_ENV"] = env if env elsif env_flag = ARGV.find { |arg| arg.start_with?("--environment=") } # rubocop:disable Lint/AssignmentInCondition ENV["BRIDGETOWN_ENV"] = env_flag.split("=").last end ENV["RACK_ENV"] = ENV["BRIDGETOWN_ENV"] require "bridgetown-core/commands/base" Bridgetown::Commands::Base.start unless output_version
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bridgetown-core-1.0.0.alpha11 | bin/bridgetown |
bridgetown-core-1.0.0.alpha10 | bin/bridgetown |
bridgetown-core-1.0.0.alpha9 | bin/bridgetown |