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

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

#command?(path) ⇒ TrueClass, FalseClass

Check if command is relative

Returns:

  • (TrueClass, FalseClass)

    true

    • command.sh

    false

    • /bin/command.sh
    • bin/command.sh


223
224
225
226
# File 'lib/aruba/platforms/unix_platform.rb', line 223

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