Sha256: 31e41a74de5455bde3fe006c5c21fb1b8b7eaad9273c6cb1ff6b5fd205a6fc84
Contents?: true
Size: 568 Bytes
Versions: 7
Compression:
Stored size: 568 Bytes
Contents
# frozen_string_literal: true module Nextgen module RailsCommand class << self def run(*args, raise_on_error: true) command = "rails", *args say_status :run, *command.join(" ") with_original_bundler_env do system(*command, exception: raise_on_error) end end private def say_status(...) Thor::Base.shell.new.say_status(...) end def with_original_bundler_env(&) return yield unless defined?(Bundler) Bundler.with_original_env(&) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems