Sha256: b794c64c719b272a6297f85ec55c1b4ddb364fdfa17d6cd6cdc4a46d09913cd8

Contents?: true

Size: 225 Bytes

Versions: 8

Compression:

Stored size: 225 Bytes

Contents

module WhereToCLI
  module Helpers
    def self.check_location!(location)
      return '.' if location.nil?
      raise "The location '#{location}' does not exist" unless File.exist? location
      location
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
where_to-1.1.0 lib/where_to_cli/helpers.rb
where_to-1.0.7 lib/where_to_cli/helpers.rb
where_to-1.0.6 lib/where_to_cli/helpers.rb
where_to-1.0.5 lib/where_to_cli/helpers.rb
where_to-1.0.4 lib/where_to_cli/helpers.rb
where_to-1.0.3 lib/where_to_cli/helpers.rb
where_to-1.0.2 lib/where_to_cli/helpers.rb
where_to-1.0.1 lib/where_to_cli/helpers.rb