class Builtins::Exec

Public Class Methods

description() click to toggle source
# File lib/builtins/exec.rb, line 11
def description
        "executes the given command in the `ops` environment, i.e. with environment variables set"
end

Public Instance Methods

run() click to toggle source
# File lib/builtins/exec.rb, line 16
def run
        Secrets.load if Options.get("exec.load_secrets")

        if args.any?
                Kernel.exec(args.join(" "))
        else
                Output.error("Usage: ops exec '<command>'")
        end
end