Class: Superbot::Cloud::CLI::Member::AddCommand
- Inherits:
-
BaseCommand
- Object
- Clamp::Command
- LoginRequiredCommand
- OrganizationBasedCommand
- BaseCommand
- Superbot::Cloud::CLI::Member::AddCommand
- Defined in:
- lib/superbot/cloud/cli/member/add_command.rb
Instance Method Summary collapse
Methods inherited from LoginRequiredCommand
Methods included from Validations
Instance Method Details
#add_member ⇒ Object
14 15 16 17 |
# File 'lib/superbot/cloud/cli/member/add_command.rb', line 14 def add_member api_response = Superbot::Cloud::Api.request(:add_member, params: { organization_name: organization, username: username }) puts "Succesfully added %<username>s to %<organization>s organization" % api_response.slice(:username, :organization) end |
#execute ⇒ Object
10 11 12 |
# File 'lib/superbot/cloud/cli/member/add_command.rb', line 10 def execute add_member end |