Class: Central::Cli::Master::Azure::CreateCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Central::Cli::Master::Azure::CreateCommand
- Includes:
- Common
- Defined in:
- lib/central/cli/master/azure/create_command.rb
Instance Method Summary collapse
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
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/central/cli/master/azure/create_command.rb', line 21 def execute require 'central/machine/azure' provisioner = Central::Machine::Azure::MasterProvisioner.new(subscription_id, certificate) provisioner.run!( password: password, ssh_key: ssh_key, ssl_cert: ssl_cert, size: size, virtual_network: network, subnet: subnet, location: location, auth_server: auth_provider_url, version: version, vault_secret: vault_secret || SecureRandom.hex(24), vault_iv: vault_iv || SecureRandom.hex(24) ) end |