Class: AwesomeSpawn::CommandLineBuilder
- Inherits:
-
Object
- Object
- AwesomeSpawn::CommandLineBuilder
- Defined in:
- lib/awesome_spawn/command_line_builder.rb
Instance Method Summary collapse
-
#build(command, params = nil) ⇒ String
Build the full command line.
Instance Method Details
#build(command, params = nil) ⇒ String
Build the full command line.
46 47 48 49 |
# File 'lib/awesome_spawn/command_line_builder.rb', line 46 def build(command, params = nil) params = assemble_params(sanitize(params)) params.empty? ? command.to_s : "#{command} #{params}" end |