lib/shelly/cli/config.rb in shelly-0.1.24.pre vs lib/shelly/cli/config.rb in shelly-0.1.24.pre2
- old
+ new
@@ -77,10 +77,11 @@
e.each_error { |error| say_error error, :with_exit => false }
exit 1
end
desc "delete PATH", "Delete configuration file"
- def delete(path)
+ def delete(path = nil)
+ say_error "No configuration file specified" unless path
app = multiple_clouds(options[:cloud], "delete #{path}")
answer = yes?("Are you sure you want to delete 'path' (yes/no): ")
if answer
app.delete_config(path)
say "File '#{path}' deleted.", :green