class Pups::Command

Public Class Methods

interpolate_params(cmd, params) click to toggle source
# File lib/pups/command.rb, line 12
def self.interpolate_params(cmd, params)
  Pups::Config.interpolate_params(cmd, params)
end
run(command, params) click to toggle source
# File lib/pups/command.rb, line 5
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

Public Instance Methods

interpolate_params(cmd) click to toggle source
# File lib/pups/command.rb, line 16
def interpolate_params(cmd)
  Pups::Command.interpolate_params(cmd, @params)
end