Sha256: a7f6b08a4b3b314ff3cf16ce93e50b099e0bd0c77961137996d2c7b3eaf888fc

Contents?: true

Size: 444 Bytes

Versions: 2

Compression:

Stored size: 444 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
        OptionsFile.new(Relish.local_options_file).store(@cli_options)
      end
      
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
relish-0.0.8 lib/relish/commands/config.rb
relish-0.0.7 lib/relish/commands/config.rb