Class: Central::Cli::Stacks::AddUserCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Central::Cli::Stacks::AddUserCommand
- Includes:
- Common, Central::Cli::StackOptions, Common
- Defined in:
- lib/central/cli/stacks/add_user_command.rb
Instance Method Summary collapse
Methods included from Common
#calculate_filesystem_stats, #calculate_loads, #calculate_mem_used, #find_stack_by_name, #print_stack, #stacks, #to_gigabytes
Methods included from Central::Cli::StackOptions
Methods included from Common
#access_token=, #add_master, #api_url, #api_url=, #clear_current_stack, #client, #current_master, #current_master=, #current_master_index, #current_stack, #current_stack=, #ensure_custom_ssl_ca, #require_api_url, #require_current_stack, #require_token, #reset_client, #save_settings, #settings, #settings_filename
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 16 |
# File 'lib/central/cli/stacks/add_user_command.rb', line 11 def execute require_api_url token = require_token data = { email: email } client(token).post("stacks/#{current_stack}/users", data) end |