Class: Pups::Command
- Inherits:
-
Object
show all
- Defined in:
- lib/pups/command.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.interpolate_params(cmd, params) ⇒ Object
14
15
16
|
# File 'lib/pups/command.rb', line 14
def self.interpolate_params(cmd, params)
Pups::Config.interpolate_params(cmd, params)
end
|
.run(command, params) ⇒ Object
5
6
7
8
9
10
11
12
|
# File 'lib/pups/command.rb', line 5
def self.run(command, params)
case command
when String
from_str(command, params).run
when Hash
from_hash(command, params).run
end
end
|
Instance Method Details
#interpolate_params(cmd) ⇒ Object
18
19
20
|
# File 'lib/pups/command.rb', line 18
def interpolate_params(cmd)
Pups::Command.interpolate_params(cmd, @params)
end
|