bootic_cli 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bootic_cli/commands/themes.rb +6 -3
- data/lib/bootic_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c610888d557df1cea6a07b3e8e11104476c1a7d
|
|
4
|
+
data.tar.gz: e1d8c6f28dd1edef01bbbc8e1fb258f33532ccd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f492d23d1c5ae13cdd0a78d33578d2b1e61530d35a20cb796c4d6003dcead8bebf2318db4e8b8acad422c6b774cd7890e68eddc0d6217f75923a6eae2e5a986
|
|
7
|
+
data.tar.gz: cc766798c0ed812aee7aa24e9464c83809cf7836c1974e1fed6dcc473615afa6374522168dc79ec4d7b0646b643e246520d6c7c43c42899684effbbb52d6eda6
|
|
@@ -116,7 +116,7 @@ module BooticCli
|
|
|
116
116
|
|
|
117
117
|
def within_theme(&block)
|
|
118
118
|
unless is_within_theme?
|
|
119
|
-
prompt.say "This directory doesn't look like a Bootic theme! (#{
|
|
119
|
+
prompt.say "This directory doesn't look like a Bootic theme! (#{current_expanded_dir})", :magenta
|
|
120
120
|
abort
|
|
121
121
|
end
|
|
122
122
|
|
|
@@ -126,14 +126,17 @@ module BooticCli
|
|
|
126
126
|
end
|
|
127
127
|
|
|
128
128
|
def is_within_theme?
|
|
129
|
-
|
|
130
|
-
File.exist?(File.join(dir, 'layout.html'))
|
|
129
|
+
File.exist?(File.join(current_expanded_dir, 'layout.html'))
|
|
131
130
|
end
|
|
132
131
|
|
|
133
132
|
def current_dir
|
|
134
133
|
'.'
|
|
135
134
|
end
|
|
136
135
|
|
|
136
|
+
def current_expanded_dir
|
|
137
|
+
File.expand_path(current_dir)
|
|
138
|
+
end
|
|
139
|
+
|
|
137
140
|
def default_subdomain
|
|
138
141
|
nil
|
|
139
142
|
end
|
data/lib/bootic_cli/version.rb
CHANGED