File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ class Yamlresume < Formula
2
+ desc "Resumes as code in YAML"
3
+ homepage "https://github.com/yamlresume/yamlresume"
4
+ url "https://registry.npmjs.org/yamlresume/-/yamlresume-0.7.5.tgz"
5
+ sha256 "77a1ff0ffa031a3e335d0eb453c12439c90dd54273889ef3434667b5539e52d3"
6
+ license "MIT"
7
+
8
+ depends_on "node"
9
+
10
+ def install
11
+ system "npm" , "install" , *std_npm_args
12
+ bin . install_symlink Dir [ "#{ libexec } /bin/*" ]
13
+ end
14
+
15
+ test do
16
+ assert_match version . to_s , shell_output ( "#{ bin } /yamlresume --version" )
17
+
18
+ system bin /"yamlresume" , "new"
19
+ assert_match "YAMLResume provides a builtin schema" , ( testpath /"resume.yml" ) . read
20
+
21
+ output = shell_output ( "#{ bin } /yamlresume validate resume.yml" )
22
+ assert_match "Resume validation passed" , output
23
+ end
24
+ end
You can’t perform that action at this time.
0 commit comments