lib/shelly/cli/config.rb in shelly-0.1.24.pre2 vs lib/shelly/cli/config.rb in shelly-0.1.24

- old
+ new

@@ -77,11 +77,10 @@ e.each_error { |error| say_error error, :with_exit => false } exit 1 end desc "delete PATH", "Delete configuration file" - def delete(path = nil) - say_error "No configuration file specified" unless path + def delete(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