theme-juice 0.6.0 → 0.6.1
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/interaction.rb +18 -18
- data/lib/theme-juice/services/create_site.rb +0 -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: 4c1b4474cefccc6e847057f49168b505fe3cb18e
|
4
|
+
data.tar.gz: 76f95bc1bc6589705ee48bb6570dd2f9658cf360
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a190f61c738570c64744a75090d111ff31057bb63e76bfda0fa6fb6dd1b5f01e907a11b2f679a00529aafdd559c2c0cf17aa5bbf44146de696fd4082ed0cf50a
|
7
|
+
data.tar.gz: a08f41de3bb69eb72516a9c1a3d24087f7275afdfa52dd4c385a8fca0fe549f731576a87247a16391c1cbf7785c43fc05a9960d3e9b58e1b11c7be3e8dd9ce2e
|
@@ -74,7 +74,7 @@ module ThemeJuice
|
|
74
74
|
def prompt(question, *opts)
|
75
75
|
format_message question, {
|
76
76
|
:color => :blue,
|
77
|
-
:icon
|
77
|
+
:icon => :question
|
78
78
|
}
|
79
79
|
|
80
80
|
opts.each do |opt|
|
@@ -105,7 +105,7 @@ module ThemeJuice
|
|
105
105
|
|
106
106
|
format_message question, {
|
107
107
|
:color => opts[:color] || :blue,
|
108
|
-
:icon
|
108
|
+
:icon => :question
|
109
109
|
}
|
110
110
|
|
111
111
|
if opts[:simple]
|
@@ -125,7 +125,7 @@ module ThemeJuice
|
|
125
125
|
def log(message)
|
126
126
|
speak message, {
|
127
127
|
:color => :yellow,
|
128
|
-
:icon
|
128
|
+
:icon => :log
|
129
129
|
}
|
130
130
|
end
|
131
131
|
|
@@ -139,8 +139,8 @@ module ThemeJuice
|
|
139
139
|
def success(message)
|
140
140
|
speak message, {
|
141
141
|
:color => [:black, :on_green, :bold],
|
142
|
-
:icon
|
143
|
-
:row
|
142
|
+
:icon => :success,
|
143
|
+
:row => true
|
144
144
|
}
|
145
145
|
end
|
146
146
|
|
@@ -154,8 +154,8 @@ module ThemeJuice
|
|
154
154
|
def notice(message)
|
155
155
|
speak message, {
|
156
156
|
:color => [:black, :on_yellow],
|
157
|
-
:icon
|
158
|
-
:row
|
157
|
+
:icon => :notice,
|
158
|
+
:row => true
|
159
159
|
}
|
160
160
|
end
|
161
161
|
|
@@ -170,8 +170,8 @@ module ThemeJuice
|
|
170
170
|
def error(message)
|
171
171
|
speak message, {
|
172
172
|
:color => [:white, :on_red],
|
173
|
-
:icon
|
174
|
-
:row
|
173
|
+
:icon => :error,
|
174
|
+
:row => true
|
175
175
|
}
|
176
176
|
|
177
177
|
yield if block_given?
|
@@ -189,7 +189,7 @@ module ThemeJuice
|
|
189
189
|
def hello(opts = {})
|
190
190
|
speak "Welcome to Theme Juice!", {
|
191
191
|
:color => [:black, :on_green, :bold],
|
192
|
-
:row
|
192
|
+
:row => true
|
193
193
|
}.merge(opts)
|
194
194
|
end
|
195
195
|
|
@@ -202,8 +202,8 @@ module ThemeJuice
|
|
202
202
|
#
|
203
203
|
def goodbye(opts = {})
|
204
204
|
speak "Bye bye!", {
|
205
|
-
:color
|
206
|
-
:icon
|
205
|
+
:color => :yellow,
|
206
|
+
:icon => :general,
|
207
207
|
:newline => true
|
208
208
|
}.merge(opts)
|
209
209
|
|
@@ -222,14 +222,14 @@ module ThemeJuice
|
|
222
222
|
def list(header, color, list)
|
223
223
|
speak header, {
|
224
224
|
:color => [:black, :"on_#{color}"],
|
225
|
-
:icon
|
226
|
-
:row
|
225
|
+
:icon => :notice,
|
226
|
+
:row => true
|
227
227
|
}
|
228
228
|
|
229
229
|
list.each do |item|
|
230
230
|
speak item, {
|
231
231
|
:color => :"#{color}",
|
232
|
-
:icon
|
232
|
+
:icon => :general
|
233
233
|
}
|
234
234
|
end
|
235
235
|
end
|
@@ -246,7 +246,7 @@ module ThemeJuice
|
|
246
246
|
def choose(header, color, list)
|
247
247
|
speak "#{header} (use arrow keys and press enter)", {
|
248
248
|
:color => :"#{color}",
|
249
|
-
:icon
|
249
|
+
:icon => :question
|
250
250
|
}
|
251
251
|
|
252
252
|
print "\n" * list.size
|
@@ -390,8 +390,8 @@ module ThemeJuice
|
|
390
390
|
list.each_with_index do |item, i|
|
391
391
|
icon = if i == selected then "selected" else "unselected" end
|
392
392
|
speak "#{item}", {
|
393
|
-
:color
|
394
|
-
:icon
|
393
|
+
:color => :"#{color}",
|
394
|
+
:icon => :"#{icon}",
|
395
395
|
:indent => 2
|
396
396
|
}
|
397
397
|
end
|
@@ -292,19 +292,6 @@ module ThemeJuice
|
|
292
292
|
def setup_synced_folder
|
293
293
|
@interaction.log "Syncing host theme with VM"
|
294
294
|
|
295
|
-
contents = %Q{
|
296
|
-
### Begin '#{@opts[:site_name]}'
|
297
|
-
#
|
298
|
-
# This block is automatically generated by Theme Juice. Do not edit.
|
299
|
-
###
|
300
|
-
Vagrant.configure('2') do |config|
|
301
|
-
\tconfig.vm.synced_folder '#{@opts[:site_location]}', '/srv/www/tj-#{@opts[:site_name]}', mount_options: ['dmode=777','fmode=777']
|
302
|
-
\tconfig.landrush.host '#{@opts[:site_dev_url]}', '192.168.50.4'
|
303
|
-
end
|
304
|
-
### End '#{@opts[:site_name]}'
|
305
|
-
\n
|
306
|
-
}
|
307
|
-
|
308
295
|
File.open File.expand_path("#{@environment.vvv_path}/Vagrantfile"), "ab+" do |file|
|
309
296
|
file.puts "### Begin '#{@opts[:site_name]}'"
|
310
297
|
file.puts "#"
|
data/lib/theme-juice/version.rb
CHANGED