Module: Kontena::Cli::Etcd::Common

Included in:
GetCommand, ListCommand, MkdirCommand, RemoveCommand, SetCommand
Defined in:
lib/kontena/cli/etcd/common.rb

Instance Method Summary collapse

Instance Method Details

#validate_keyObject



4
5
6
# File 'lib/kontena/cli/etcd/common.rb', line 4

def validate_key
  abort("Invalid key, did you mean /#{key} ?") unless key[0] == '/'
end