Method: TTY::Command::Cmd#group

Defined in:
lib/tty/command/cmd.rb

#group(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



114
115
116
117
118
# File 'lib/tty/command/cmd.rb', line 114

def group(value)
  return value unless options[:group]

  %(sg #{options[:group]} -c \\\"%s\\\") % [value]
end