bootic_cli 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6ab030919ecb399f1cda0030a9573b1dc1cebd7
|
4
|
+
data.tar.gz: 3f6079156d89e0c6c18909453e3e50566d461283
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff7ae4987db9ab03c59ad9628a12470a0ced9088e10372252b590ecd297a22eb8406fb663d574e24bacd817371fb9fa4b54a87c9486cdb519ea47f82f97a50b4
|
7
|
+
data.tar.gz: 63feac3baa1a355bd88c14cc11ed82fb1968370b364bad4310ee9cd3b8d6f29669d0dad28535f6e4dd567a74558a85e3e6818e151262e8356b28e2a4296b2b42
|
@@ -91,7 +91,7 @@ module BooticCli
|
|
91
91
|
if prompt.yes_or_no?("Would you like to make a local copy of your current public theme before publishing?", false)
|
92
92
|
|
93
93
|
backup_path = File.join(local_theme.path, "public-theme-backup-#{Time.now.to_i}")
|
94
|
-
backup_theme, public_theme = theme_selector.select_theme_pair(
|
94
|
+
backup_theme, public_theme = theme_selector.select_theme_pair(local_theme.subdomain, backup_path, true)
|
95
95
|
|
96
96
|
say("Gotcha. Backing up your public theme into #{backup_theme.path}")
|
97
97
|
workflows.pull(backup_theme, public_theme)
|
@@ -124,6 +124,11 @@ module BooticCli
|
|
124
124
|
diff = ThemeDiff.new(source: local_theme, target: remote_theme)
|
125
125
|
notice 'Comparing local and remote copies of theme...'
|
126
126
|
|
127
|
+
unless diff.any?
|
128
|
+
prompt.say "No changes between versions."
|
129
|
+
exit 1
|
130
|
+
end
|
131
|
+
|
127
132
|
notice "Local <--- Remote"
|
128
133
|
|
129
134
|
diff.updated_in_target.templates.each do |t|
|
@@ -209,7 +214,7 @@ module BooticCli
|
|
209
214
|
|
210
215
|
prompt.notice "Alrighty! Publishing your development theme..."
|
211
216
|
remote_theme.publish(true) # syncs dev to public, without flipping them
|
212
|
-
prompt.notice "Yay! Your development theme has been made public. Take a look at #{remote_theme.path}"
|
217
|
+
prompt.notice "Yay! Your development theme has been made public. Take a look at #{remote_theme.path}"
|
213
218
|
end
|
214
219
|
|
215
220
|
private
|
data/lib/bootic_cli/version.rb
CHANGED