class Niman::Library::Command
Public Instance Methods
description()
click to toggle source
# File lib/niman/library/command.rb, line 17 def description if use_sudo == :sudo "sudo #{command}" else command end end
errors()
click to toggle source
# File lib/niman/library/command.rb, line 13 def errors "command must not be empty" end
valid?()
click to toggle source
# File lib/niman/library/command.rb, line 9 def valid? !command.empty? && [:no_sudo, :sudo].include?(use_sudo) end