denny/ShinyCMS-ruby

View on GitHub
bin/packwerk

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby
# frozen_string_literal: true

# This file was auto-generated by Packwerk through `packwerk init`

# Needs to be run in test environment in order to have test helper paths available in the autoload paths
ENV["RAILS_ENV"] = "test"

# Command line arguments needs to be duplicated because spring modifies it
packwerk_argv = ARGV.dup

begin
  load(File.expand_path("spring", __dir__))
rescue LoadError => e
  raise unless e.message.include?("spring")
end

require File.expand_path("../config/environment", __dir__)

require "packwerk"

cli = Packwerk::Cli.new
cli.run(packwerk_argv)