$ git contest config site add codeforces
# input site config (password will be hidden)
/home/contest/.gem/ruby/2.2.0/gems/git-contest-0.2.5/lib/git/contest/command_line/sub_commands/config_command.rb:159:in `run_site_add': undefined method `[]' for false:FalseClass (NoMethodError)
from /home/contest/.gem/ruby/2.2.0/gems/git-contest-0.2.5/lib/git/contest/command_line/sub_commands/config_command.rb:110:in `run_site'
from /home/contest/.gem/ruby/2.2.0/gems/git-contest-0.2.5/lib/git/contest/command_line/sub_commands/config_command.rb:31:in `run'
from /home/contest/.gem/ruby/2.2.0/gems/git-contest-0.2.5/lib/git/contest/command_line/main_command.rb:34:in `call_subcommand'
from /home/contest/.gem/ruby/2.2.0/gems/git-contest-0.2.5/lib/git/contest/command_line/main_command.rb:21:in `run'
from /home/contest/.gem/ruby/2.2.0/gems/git-contest-0.2.5/bin/git-contest:15:in `<top (required)>'
from /home/contest/.gem/ruby/2.2.0/bin/git-contest:23:in `load'
from /home/contest/.gem/ruby/2.2.0/bin/git-contest:23:in `<main>'
Summary
Forgot to initialize config["sites"] as Hash on get_config().
Output
ruby --version
=>ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
Links