specgen 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specgen.rb +5 -3
- 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: ea87f38bac5065057851576c3cb3ac4b2da8eea4
|
4
|
+
data.tar.gz: 5f34fd11e9309a980aca027eb777adaf490a660f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1276aa432cdd7bc4bc4c8dafb5165a261e1f5a19bb23a6cf6fa27f79df149f88c720047ab59699356c5be984fec12133aa5d2cadc25118b0982a6ac48697961a
|
7
|
+
data.tar.gz: 13917fb121a168a266fa62f35dc409d8f2a9562df285eef4af6e7c6bc0f672ebfe1605c5b3ee9fa8de272f4e02936a7052fc8d02c5d0ad19d7a45cf1d06a4ceb
|
data/lib/specgen.rb
CHANGED
@@ -24,8 +24,10 @@ def get_specgen_path
|
|
24
24
|
File.join(File.dirname(File.expand_path(__FILE__)), "specgen", "#{get_os}_amd64", "specgen#{get_ext}")
|
25
25
|
end
|
26
26
|
|
27
|
-
def
|
27
|
+
def specgen_client_ruby(spec_file: "./spec.yaml", generate_path: ".")
|
28
28
|
specgen_path = get_specgen_path
|
29
|
-
|
30
|
-
|
29
|
+
commnd = "#{specgen_path} client-ruby --spec-file #{spec_file} --generate-path #{generate_path}"
|
30
|
+
puts "Executing specgen"
|
31
|
+
puts command
|
32
|
+
sh commnd
|
31
33
|
end
|