Sha256: d28e539d2403a00d3a192184c2d937e64dd333c320ad735254b39081526998b2

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

module ConfigCurator

  # Utility class.
  module Utils

    private

    # Checks if command exists.
    # @param command [String] command name to check
    # @return [String, nil] full path to command or nil if not found
    def command? command
      MakeMakefile::Logging.instance_variable_set :@logfile, File::NULL
      MakeMakefile::Logging.quiet = true
      MakeMakefile.find_executable command.to_s
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
config_curator-0.1.1 lib/config_curator/utils.rb