Sha256: c02c97eda4f706c1d71d8a2bd8d779a99189517e2f45017ba9dfca523a1b5fdd
Contents?: true
Size: 450 Bytes
Versions: 2
Compression:
Stored size: 450 Bytes
Contents
# frozen_string_literal: true module Pups class Command def self.run(command, params) case command when String from_str(command, params).run when Hash from_hash(command, params).run end end def self.interpolate_params(cmd, params) Pups::Config.interpolate_params(cmd, params) end def interpolate_params(cmd) Pups::Command.interpolate_params(cmd, @params) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pups-1.2.1 | lib/pups/command.rb |
pups-1.2.0 | lib/pups/command.rb |