Sha256: 511aa30a6c95003c1a4beea9c18d124893337ecf498e888a477c0a2ad6feb830

Contents?: true

Size: 467 Bytes

Versions: 8

Compression:

Stored size: 467 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.get_all_configs().keys.each do |k|
    puts " - #{k}"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gaptool-server-0.7.4 tasks/config.rb
gaptool-server-0.7.3 tasks/config.rb
gaptool-server-0.7.1 tasks/config.rb
gaptool-server-0.7.0 tasks/config.rb
gaptool-server-0.6.6 tasks/config.rb
gaptool-server-0.6.4 tasks/config.rb
gaptool-server-0.6.3 tasks/config.rb
gaptool-server-0.6.0 tasks/config.rb