Sha256: 059cca87020af6b17545b610a0893294148f6b8f2f20a48164c62b0d9ececda5
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 Bytes
Contents
module Relish module Command class Config < Base def default show end def show puts(if File.exists?(Relish.local_options_file) IO.read(Relish.local_options_file) else "No #{Relish.local_options_file} file exists" end) end def add File.open(Relish.local_options_file, 'a') do |f| f.write(YAML::dump(Hash[*@args])) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
relish-0.0.6 | lib/relish/commands/config.rb |