Sha256: e337943b1ee4acf3d33dc335e72196472485a56439dcf9f6d709e8b5dd4ae6fa

Contents?: true

Size: 553 Bytes

Versions: 19

Compression:

Stored size: 553 Bytes

Contents

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 ''
    RestClient.post("#{$url}/api/user/create_user", { :api_token => $token, :attributes => {:login => login, :password => password}})
  end #create_user
end #do

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rhoconnect-3.4.5 commands/rhoconnect/create_user.rb
rhoconnect-3.4.4 commands/rhoconnect/create_user.rb
rhoconnect-3.4.3 commands/rhoconnect/create_user.rb
rhoconnect-3.4.2 commands/rhoconnect/create_user.rb
rhoconnect-3.3.6 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.3.5 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.3.4 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.3.3 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.3.2 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.3.1 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.3.1.beta4 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.3.1.beta3 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.3.1.beta2 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.2.1 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.2.0 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.2.0.beta5 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.2.0.beta4 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.2.0.beta3 commands/commands/rhoconnect/create_user.rb
rhoconnect-3.2.0.beta2 commands/commands/rhoconnect/create_user.rb