Method: Aruba::Platforms::UnixPlatform#relative_command?

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

#relative_command?(path) ⇒ Boolean

Check if command is relative

Returns:

  • (Boolean)

    true

    * bin/command.sh
    

    false

    * /bin/command.sh
    * command.sh
    


198
199
200
201
# File 'lib/aruba/platforms/unix_platform.rb', line 198

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