lib/sym/app/commands/base_command.rb in sym-2.5.3 vs lib/sym/app/commands/base_command.rb in sym-2.6.0
- old
+ new
@@ -59,10 +59,10 @@
def execute
raise Sym::Errors::AbstractMethodCalled.new(:run)
end
def content
- @content ||= (opts[:string] || (opts[:file].eql?('-') ? STDIN.read : File.read(opts[:file]).chomp))
+ @content ||= (opts[:string] || (opts[:file].eql?('-') ? STDIN.read : ::File.read(opts[:file]).chomp))
end
def to_s
"#{self.class.short_name.to_s.bold.yellow}, with options: #{application.args.argv.join(' ').gsub(/--/, '').bold.green}"
end