lib/chef/knife/google_server_create.rb in knife-google-4.2.4 vs lib/chef/knife/google_server_create.rb in knife-google-4.2.6
- old
+ new
@@ -18,20 +18,22 @@
# limitations under the License.
require "chef/knife"
require "chef/knife/cloud/server/create_command"
require "chef/knife/cloud/server/create_options"
-require_relative "cloud/google_service"
-require_relative "cloud/google_service_helpers"
require_relative "cloud/google_service_options"
class Chef::Knife::Cloud
class GoogleServerCreate < ServerCreateCommand
include GoogleServiceOptions
include GoogleServiceHelpers
include ServerCreateOptions
banner "knife google server create NAME -m MACHINE_TYPE -I IMAGE (options)"
+
+ deps do
+ require_relative "cloud/google_service"
+ end
option :machine_type,
short: "-m MACHINE_TYPE",
long: "--gce-machine-type MACHINE_TYPE",
description: "The machine type of server (n1-highcpu-2, n1-highcpu-2-d, etc)"