Method: Bump::CLI::Resource.read
- Defined in:
- lib/bump/cli/resource.rb
.read(location) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/bump/cli/resource.rb', line 7 def self.read(location) if location.start_with?("http") ::HTTP.follow(max_hops: 50) .get(location).to_s else ::File.read(location).force_encoding(Encoding::UTF_8) end end |