Class: Central::Cli::Nodes::Azure::CreateCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Central::Cli::Nodes::Azure::CreateCommand
- Includes:
- Common, StackOptions
- Defined in:
- lib/central/cli/nodes/azure/create_command.rb
Instance Method Summary collapse
Methods included from 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
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/central/cli/nodes/azure/create_command.rb', line 18 def execute require_api_url require_current_stack require 'central/machine/azure' stack = client(require_token).get("stacks/#{current_stack}") provisioner = Central::Machine::Azure::NodeProvisioner.new(client(require_token), subscription_id, certificate) provisioner.run!( master_uri: api_url, stack_token: stack['token'], stack: current_stack, password: password, ssh_key: ssh_key, name: name, size: size, virtual_network: network, subnet: subnet, location: location, version: version ) end |