(self)
| 1903 | return expand_jinja(data, v) |
| 1904 | |
| 1905 | def display_cmd(self): |
| 1906 | lines = [] |
| 1907 | if self.comment: |
| 1908 | if is_windows(): |
| 1909 | lines.append("REM %s" % self.get_comment()) |
| 1910 | else: |
| 1911 | lines.append("# %s" % self.get_comment()) |
| 1912 | if self.cwd: |
| 1913 | lines.append("pushd %s" % self.cwd) |
| 1914 | redir = "" if self.redirect is None else " %s %s" % (">" if self.redirect_append is None else ">>" , self.get_redirect()) |
| 1915 | line = "%s%s" % (expand_multiline(self.get_cmd(), indent=2), redir) |
| 1916 | # Print ~ or %HOME% rather than the full expanded homedir path |
| 1917 | line = abbreviate_homedir(line) |
| 1918 | lines.append(line) |
| 1919 | if self.cwd: |
| 1920 | lines.append("popd") |
| 1921 | return lines |
| 1922 | |
| 1923 | class UserInput(SecretYamlObject): |
| 1924 | yaml_tag = u'!UserInput' |
no test coverage detected