lib/shelly/cli/config.rb in shelly-0.2.27 vs lib/shelly/cli/config.rb in shelly-0.2.28
- old
+ new
@@ -79,11 +79,10 @@
end
desc "delete PATH", "Delete configuration file"
def delete(path)
app = multiple_clouds(options[:cloud], "config delete #{path}")
- answer = yes?("Are you sure you want to delete 'path' (yes/no): ")
- if answer
+ if yes?("Are you sure you want to delete 'path' (yes/no): ")
app.delete_config(path)
say "File '#{path}' deleted.", :green
say "To make changes to running application redeploy it using:"
say "`shelly redeploy --cloud #{app}`"
else