Sha256: 181a7de904c83598ef100893bc7b345eb362ee8e67638e4601d8385cf8ce64f6

Contents?: true

Size: 444 Bytes

Versions: 2

Compression:

Stored size: 444 Bytes

Contents

# frozen_string_literal: true

module Pups
  class Command
    def self.run(command, params)
      case command
      when String then from_str(command, params).run
      when Hash then 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.1.1 lib/pups/command.rb
pups-1.1.0 lib/pups/command.rb