lib/kontena/plugin/digital_ocean/nodes/create_command.rb in kontena-plugin-digitalocean-0.3.1.rc1 vs lib/kontena/plugin/digital_ocean/nodes/create_command.rb in kontena-plugin-digitalocean-0.3.1

- old
+ new

@@ -1,6 +1,6 @@ -require_relative '../prompts' +require 'kontena/plugin/digital_ocean/prompts' module Kontena::Plugin::DigitalOcean::Nodes class CreateCommand < Kontena::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions @@ -15,16 +15,14 @@ option "--version", "VERSION", "Define installed Kontena version", default: 'latest' option "--channel", "CHANNEL", "Define CoreOS image channel" def execute suppress_warnings # until DO merges resource_kit pr #32 + require 'kontena/machine/digital_ocean' require_api_url require_current_grid do_token = ask_do_token - - require_relative '../../../machine/digital_ocean' - do_region = ask_droplet_region(do_token) coreos_channel = self.channel || ask_channel do_size = ask_droplet_size(do_token, do_region) do_count = ask_droplet_count do_ssh_key_id = ask_ssh_key(do_token)