Sha256: 6921fed65d3cd6442730d837ef360174d7560f52b7abfe030f88a370fa107474
Contents?: true
Size: 705 Bytes
Versions: 1
Compression:
Stored size: 705 Bytes
Contents
module Relish module Command class Config < Base desc 'display the contents of your options file' command :default => :show usage 'config:show' desc 'display the contents of your options file' command :show do puts(if File.exists?(Relish.local_options_file) IO.read(Relish.local_options_file) else "No #{Relish.local_options_file} file exists" end) end usage 'config:add --<option> <value>' desc 'add a configuration option to your options file' command :add do OptionsFile.new(Relish.local_options_file).store(@cli_options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
relish-0.0.9 | lib/relish/commands/config.rb |