Module: Freshen::Executable
- Included in:
- Freshener
- Defined in:
- lib/freshen/executable.rb
Overview
This module allows you to execute shell commands without terminating the current ruby process.
Class Method Summary collapse
-
.command_string(command, *args) ⇒ Object
Get the full command string for a command and it’s arguments.
Class Method Details
.command_string(command, *args) ⇒ Object
Get the full command string for a command and it’s arguments.
Example:
>> Freshen::Executable.command_string :gem, :update
=> "gem update"
18 19 20 21 22 |
# File 'lib/freshen/executable.rb', line 18 def self.command_string(command, *args) args ||= [] args.unshift(command) args.join(' ') end |