Execute.define_task do desc "create-user", "Creates and subscribes user for application in rhoconnect" def create_user invoke :config password = '' login = ask "new user login: " begin system "stty -echo" password = ask "\nnew user password: " system "stty echo" rescue NoMethodError, Interrupt system "stty echo" exit end puts '' RhoconnectApi.create_user($url,$token,login,password) end #create_user end #do