Skip to content

Quoting in yaml #120

@imholzj

Description

@imholzj

Quoting in the yaml file is a little tricky. The following does not work:

windows:

  • name: "railsprod"
    root: ~
    layout: even-vertical
    panes:
    • ssh server -t 'cd /var/log/rails; bash --login'
    • ssh server -t 'cd /var/rails_apps; bash --login'

If I double quote the ssh command parameter it does work (so I'm good.) But for kicks, I ran this yaml through yamllint.com (I don't know if this is a good resource or not) and got:

windows:

  • name: "railsprod"
    root: ~
    layout: even-vertical
    panes:
    • "ssh server -t 'cd /var/log/rails; bash --login'"
    • "ssh server -t 'cd /var/rails_apps; bash --login'"

and teamocil doesn't like that quoting either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions