theme-juice 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/theme-juice/cli.rb +13 -13
- data/lib/theme-juice/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: 73d1296a8484fbae76a72f7a5606c252bb4743ba
|
4
|
+
data.tar.gz: f74f4c6a09211dba3028f56b7c6559d2f466d107
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa89fb673767296ae6b412e086d4180f9e2ceb2a1fc29bb909a1b68d82666501fae5abdb1a68ba0bf1c692aec81e10c0cda4bb56ebbebd28ed4814f3fcdfb20f
|
7
|
+
data.tar.gz: 15eb808984f6de663e48b890db4d85e77d0d6543e7805e64f2ac1b4780a7194779cf5ce04149d54b4a76a92704112b79ff5f169fe3d3228986823d3b5fc30a46
|
data/lib/theme-juice/cli.rb
CHANGED
@@ -97,11 +97,11 @@ module ThemeJuice
|
|
97
97
|
clean_site_name = site.gsub(/[^\w]/, "_")[0..10]
|
98
98
|
|
99
99
|
# Location of site installation
|
100
|
-
if options[:
|
101
|
-
site_location =
|
100
|
+
if options[:location]
|
101
|
+
site_location = options[:location]
|
102
102
|
else
|
103
|
-
if options[:
|
104
|
-
site_location =
|
103
|
+
if options[:use_defaults]
|
104
|
+
site_location = "#{Dir.pwd}/"
|
105
105
|
else
|
106
106
|
site_location = ask " ○ Where do you want to setup the site? :", :blue, default: "#{Dir.pwd}/", path: true
|
107
107
|
end
|
@@ -123,7 +123,7 @@ module ThemeJuice
|
|
123
123
|
}
|
124
124
|
|
125
125
|
if options[:use_defaults]
|
126
|
-
|
126
|
+
starter_theme = themes["theme-juice/theme-juice-starter"]
|
127
127
|
else
|
128
128
|
say " ○ Which starter theme would you like to use? (partial name is acceptable)", :blue
|
129
129
|
choose do |menu|
|
@@ -155,11 +155,11 @@ module ThemeJuice
|
|
155
155
|
end
|
156
156
|
|
157
157
|
# Development url
|
158
|
-
if options[:
|
159
|
-
dev_url =
|
158
|
+
if options[:url]
|
159
|
+
dev_url = options[:url]
|
160
160
|
else
|
161
|
-
if options[:
|
162
|
-
dev_url =
|
161
|
+
if options[:use_defaults]
|
162
|
+
dev_url = "#{site}.dev"
|
163
163
|
else
|
164
164
|
dev_url = ask " ○ What do you want the development url to be? (this should end in '.dev') :", :blue, default: "#{site}.dev"
|
165
165
|
end
|
@@ -171,11 +171,11 @@ module ThemeJuice
|
|
171
171
|
end
|
172
172
|
|
173
173
|
# Initialize a git repository on setup
|
174
|
-
if options[:
|
175
|
-
repository =
|
174
|
+
if options[:repository]
|
175
|
+
repository = options[:repository]
|
176
176
|
else
|
177
|
-
if options[:
|
178
|
-
repository =
|
177
|
+
if options[:use_defaults] || options[:skip_repo]
|
178
|
+
repository = false
|
179
179
|
else
|
180
180
|
if yes? " ○ Would you like to initialize a new Git repository? (y/N) :", :blue
|
181
181
|
repository = ask " ○ What is the repository's URL? :", :blue
|
data/lib/theme-juice/version.rb
CHANGED