bootic_cli 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootic_cli/themes/api_theme.rb +2 -2
- data/lib/bootic_cli/themes/workflows.rb +2 -2
- data/lib/bootic_cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce65ebb8fcfa965e89d36c586b1e8727b107293a
|
4
|
+
data.tar.gz: 65a6397f16c67cd0384cd32562b811b629329515
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cb885f8025ac8a13a10073b4ed53924a324a5058fa293b0195f64df17b863ea7a7584edad90928ffc81dfbd03d71b84d1621cbad57945360ff3e97ed27457fc
|
7
|
+
data.tar.gz: e00d252e1e00dad78e4588d1f7040e2a0954db1914007ac5b550620ddc71bc3096847ba98604dffdd471645078b052fff3510f882839b95ab2cc6e4c0310e8d8
|
@@ -134,7 +134,7 @@ module BooticCli
|
|
134
134
|
tpl = theme.templates.find { |t| t.file_name == file_name }
|
135
135
|
if tpl && tpl.can?(:delete_template)
|
136
136
|
res = tpl.delete_template
|
137
|
-
|
137
|
+
res.status.to_i < 300
|
138
138
|
else
|
139
139
|
puts "Cannot delete #{file_name}"
|
140
140
|
end
|
@@ -151,7 +151,7 @@ module BooticCli
|
|
151
151
|
asset = theme.assets.find { |t| t.file_name == file_name }
|
152
152
|
if asset and asset.can?(:delete_theme_asset)
|
153
153
|
res = asset.delete_theme_asset
|
154
|
-
|
154
|
+
res.status.to_i < 300
|
155
155
|
else
|
156
156
|
puts "Cannot delete asset: #{file_name}"
|
157
157
|
end
|
@@ -338,7 +338,7 @@ module BooticCli
|
|
338
338
|
def delete_file(theme, path)
|
339
339
|
type = FSTheme.resolve_type(path)
|
340
340
|
file_name = File.basename(path)
|
341
|
-
case type
|
341
|
+
success = case type
|
342
342
|
when :template
|
343
343
|
theme.remove_template(file_name)
|
344
344
|
when :asset
|
@@ -346,7 +346,7 @@ module BooticCli
|
|
346
346
|
else
|
347
347
|
raise "Invalid type: #{type}"
|
348
348
|
end
|
349
|
-
puts "Deleted remote #{type}: #{highlight(file_name)}"
|
349
|
+
puts "Deleted remote #{type}: #{highlight(file_name)}" if success
|
350
350
|
end
|
351
351
|
|
352
352
|
def handle_file_errors(type, file, &block)
|
data/lib/bootic_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootic_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ismael Celis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|