commands/parser.rb in rhoconnect-4.0.4 vs commands/parser.rb in rhoconnect-5.1.1
- old
+ new
@@ -132,10 +132,10 @@
end
end
# rhoconnect get-token|set-admin-password
module AdminCommands
- def self.match?(input); input == 'get-token' || input == 'set_admin_password'; end
+ def self.match?(input); input =~ /get[-_]token/ || input =~ /set[-_]admin[-_]password/; end
def self.execute(input)
require_relative '../commands/rhoconnect/config'
require_relative '../commands/rhoconnect/get_token'
require_relative '../commands/rhoconnect/set_admin_password'
end