Sha256: b1f638daa881df701e1f2858226abe7e528eb44421321199a2a49a50a88c3e10

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 Bytes

Contents

class Pups::Command

  def self.run(command,params)
    case command
      when String then self.from_str(command,params).run
      when Hash then self.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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pups-1.0.3 lib/pups/command.rb
pups-1.0.2 lib/pups/command.rb
pups-1.0.1 lib/pups/command.rb
pups-1.0.0 lib/pups/command.rb