class Fuci::CommandCache
Constants
- CACHE_FILE_LOCATION
Public Class Methods
new(command=nil)
click to toggle source
# File lib/fuci/command_cache.rb, line 5 def initialize command=nil @command = command end
Public Instance Methods
cache_command()
click to toggle source
# File lib/fuci/command_cache.rb, line 9 def cache_command file = File.new CACHE_FILE_LOCATION, 'w+' file.write @command file.close end
fetch()
click to toggle source
# File lib/fuci/command_cache.rb, line 15 def fetch File.read CACHE_FILE_LOCATION end