From 712fae5653d85f7080be0fbd4423d41f8d019541 Mon Sep 17 00:00:00 2001 From: Weston Ganger Date: Tue, 28 May 2019 20:12:35 -0700 Subject: [PATCH 1/3] When using `deploy -d` option, do not warn when pushing to development --- lib/locomotive/wagon/commands/push_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/locomotive/wagon/commands/push_command.rb b/lib/locomotive/wagon/commands/push_command.rb index 927b84d6..e734c308 100644 --- a/lib/locomotive/wagon/commands/push_command.rb +++ b/lib/locomotive/wagon/commands/push_command.rb @@ -40,7 +40,7 @@ def push # Ask for a confirmation (Warning) if we deploy with the -d option # since it alters content on the remote engine - if options[:data] + if options[:data] && self.env != 'development' return unless ask_for_performing("Warning! You're about to deploy data which will alter the content of your site.") end From 4dbf4fbf2c6748486d8d48dbb643cdaea7d17101 Mon Sep 17 00:00:00 2001 From: Weston Ganger Date: Wed, 29 May 2019 15:24:12 -0700 Subject: [PATCH 2/3] Update push_command.rb --- lib/locomotive/wagon/commands/push_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/locomotive/wagon/commands/push_command.rb b/lib/locomotive/wagon/commands/push_command.rb index e734c308..129e845a 100644 --- a/lib/locomotive/wagon/commands/push_command.rb +++ b/lib/locomotive/wagon/commands/push_command.rb @@ -40,7 +40,7 @@ def push # Ask for a confirmation (Warning) if we deploy with the -d option # since it alters content on the remote engine - if options[:data] && self.env != 'development' + if options[:data] && self.env == 'production' return unless ask_for_performing("Warning! You're about to deploy data which will alter the content of your site.") end From 6b59175c64bb42c85bd29540ad87d33c2a130af2 Mon Sep 17 00:00:00 2001 From: Weston Ganger Date: Fri, 19 Jul 2019 10:33:55 -0700 Subject: [PATCH 3/3] Update push_command.rb --- lib/locomotive/wagon/commands/push_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/locomotive/wagon/commands/push_command.rb b/lib/locomotive/wagon/commands/push_command.rb index 129e845a..e734c308 100644 --- a/lib/locomotive/wagon/commands/push_command.rb +++ b/lib/locomotive/wagon/commands/push_command.rb @@ -40,7 +40,7 @@ def push # Ask for a confirmation (Warning) if we deploy with the -d option # since it alters content on the remote engine - if options[:data] && self.env == 'production' + if options[:data] && self.env != 'development' return unless ask_for_performing("Warning! You're about to deploy data which will alter the content of your site.") end