Class: Willpower::Members

Inherits:
Thor
  • Object
show all
Defined in:
lib/willpower/commands/users.rb

Instance Method Summary collapse

Instance Method Details

#invite(login) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/willpower/commands/users.rb', line 4

def invite()
  error_checking_users
  find_user()
  if @users_array.include?()
    RestClient.put "#{CONFIG['current_remote']}/api/v1/userproject/#{}",
                   project: CONFIG["current_project"], current_user: CONFIG["current_user"], new_user: 
    say "Successfully added new user!"
  else
    say "There is no such user!"
  end
end

#role(login) ⇒ Object



17
18
19
20
21
22
# File 'lib/willpower/commands/users.rb', line 17

def role()
  error_checking_users
  RestClient.put"#{CONFIG['current_remote']}/api/v1/users/#{}",
                project_id: CONFIG["current_project_id"], name: , role_id: role_type
  say "Successfully updated user's role!"
end