Method: Aruba::Platforms::UnixPlatform#command?

Defined in:
lib/aruba/platforms/unix_platform.rb

#command?(path) ⇒ Boolean

Check if command is relative

Returns:

  • (Boolean)

    true

    * command.sh
    

    false

    * /bin/command.sh
    * bin/command.sh
    


212
213
214
215
# File 'lib/aruba/platforms/unix_platform.rb', line 212

def command?(path)
  p = Pathname.new(path)
  p.relative? && p.basename == p
end