skp 0.0.2 → 1.0.0
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/Gemfile.lock +1 -1
- data/lib/skp/cli.rb +8 -3
- data/lib/skp/client.rb +6 -4
- data/lib/skp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d44afe64d8c5f5d293a774165b9b074630d0c2f6e3bc038555f8021fd69e536
|
4
|
+
data.tar.gz: 15fb0856802f26b770335525fa177c9ea79e74363d2468294df2a6c5c0aab8a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eda534dda4f487e7c035e87ab7ccf1559dc99f148ee7224b18373a4afac9de560c4957423dce3b556c877bfed2fcaee21c1faafc13363d2b0b348f803a1a2f13
|
7
|
+
data.tar.gz: f6c5de67929e38beeb8a7964573bbf32822e8f9a6d189c60d185087f720b23ffae840f99f83f856b50b1dac9405c6fc45e1121325c6f8547621a980a766a20b1
|
data/Gemfile.lock
CHANGED
data/lib/skp/cli.rb
CHANGED
@@ -228,10 +228,15 @@ module SKP
|
|
228
228
|
when "text"
|
229
229
|
location = "text/#{content["s3_key"]}"
|
230
230
|
openable = true
|
231
|
-
when "
|
232
|
-
say "
|
233
|
-
say "
|
231
|
+
when "compiled"
|
232
|
+
say "Sidekiq in Practice is primarily designed to be experienced via this CLI."
|
233
|
+
say "However, PDF and other compiled formats are in your ./compiled directory."
|
234
234
|
say "You can check it out now, or to continue: $ skp next "
|
235
|
+
when "prof_gray"
|
236
|
+
say "Sidekiq in Practice has several hands-on labs to help you to understand the workshop."
|
237
|
+
say "We've downlaoded some supporting files in ./prof_gray"
|
238
|
+
say "You will need to read these files to work on the labs, but don't modify them."
|
239
|
+
say "You can check them out now, or to continue: $ skp next "
|
235
240
|
end
|
236
241
|
if location
|
237
242
|
if openable && !open_after
|
data/lib/skp/client.rb
CHANGED
@@ -53,7 +53,7 @@ module SKP
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def directory_setup(home_dir_ok = true)
|
56
|
-
["video", "quiz", "lab", "text", "
|
56
|
+
["video", "quiz", "lab", "text", "compiled", "prof_gray"].each do |path|
|
57
57
|
FileUtils.mkdir_p(path) unless File.directory?(path)
|
58
58
|
end
|
59
59
|
|
@@ -71,7 +71,8 @@ module SKP
|
|
71
71
|
f.puts "quiz\n"
|
72
72
|
f.puts "lab\n"
|
73
73
|
f.puts "text\n"
|
74
|
-
f.puts "
|
74
|
+
f.puts "compiled\n"
|
75
|
+
f.puts "prof_gray\n"
|
75
76
|
end
|
76
77
|
end
|
77
78
|
|
@@ -117,7 +118,7 @@ module SKP
|
|
117
118
|
end
|
118
119
|
|
119
120
|
def directories_ready?
|
120
|
-
["video", "quiz", "lab", "text", "
|
121
|
+
["video", "quiz", "lab", "text", "compiled"].all? do |path|
|
121
122
|
File.directory?(path)
|
122
123
|
end
|
123
124
|
end
|
@@ -152,7 +153,8 @@ module SKP
|
|
152
153
|
|
153
154
|
def extract_content(content)
|
154
155
|
folder = content["style"]
|
155
|
-
`tar -C #{folder} -xzf #{folder
|
156
|
+
`tar -C #{folder} -xzf #{File.join(folder, content["s3_key"])}`
|
157
|
+
File.delete(File.join(folder, content["s3_key"]))
|
156
158
|
end
|
157
159
|
end
|
158
160
|
end
|
data/lib/skp/version.rb
CHANGED