class Chef::Knife::Cloud::Command
Attributes
custom_arguments[RW]
service[RW]
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/cloud/command.rb, line 31 def run # Set dafult config set_default_config # validate compulsory params validate! # validate command pre-requisites (cli options) validate_params! # setup the service @service = create_service_instance service.ui = ui # for interactive user prompts/messages # Perform any steps before handling the command before_exec_command # exec the actual cmd execute_command # Perform any steps after handling the command after_exec_command rescue CloudExceptions::KnifeCloudError => e Chef::Log.debug(e.message) exit 1 end