Sha256: 66728d63a8eff889e790fddaf454c5bfb297e95e13ae6c4416c8a38733880267

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

module Relish
  module Command
    class Config < Base
      
      desc    'display the contents of your options file'
      command :default 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.1.0 lib/relish/commands/config.rb