Sha256: b5b6b9f13048761b0c13a446b185ae5d1193bb9b9ced2c49947b0cb8e6de5832
Contents?: true
Size: 462 Bytes
Versions: 6
Compression:
Stored size: 462 Bytes
Contents
namespace :config do desc 'Add or update a new config key' task :set, [:key, :value] do |_t, args| DH.set_config(args[:key], args[:value]) end desc 'Delete a key if set' task :del, [:key] do |_t, args| DH.del_config(args[:key]) end desc 'Get a config' task :get, [:key] do |_t, args| DH.get_config(args[:key]) end end desc 'List config' task :config do puts 'Config:' DH.configs.keys.each do |k| puts " - #{k}" end end
Version data entries
6 entries across 6 versions & 1 rubygems