Sha256: 5d1c0c6cc2f30185dd2f715df5436f497999aad0c7023cf1e66619d3a8c20750
Contents?: true
Size: 627 Bytes
Versions: 23
Compression:
Stored size: 627 Bytes
Contents
require "bard/command" module Bard::CLI::Run def self.included mod mod.class_eval do # HACK: we don't use Thor::Base#run, so its okay to stomp on it here original_verbose, $VERBOSE = $VERBOSE, nil Thor::THOR_RESERVED_WORDS -= ["run"] $VERBOSE = original_verbose desc "run <command>", "run the given command on production" def run *args server = config[:production] server.run! *args.join(" "), verbose: true rescue Bard::Command::Error => e puts red("!!! ") + "Running command failed: #{yellow(e.message)}" exit 1 end end end end
Version data entries
23 entries across 23 versions & 1 rubygems