2016-02-03 36 views

回答

1

如果您使用Github上(或類似),您可以使用file.managed要監視更改的文件:

/tmp/egg: 
    file.managed: 
    - source: https://raw.githubusercontent.com/mafrosis/dotfiles/master/README.md 
    - source_hash: sha1=bf5b231d1b3dc9bc3217896f9f5d1c903b0779dd 
    cmd.wait: 
    - name: touch /tmp/bacon 
    - watch: 
     - file: /tmp/egg 
相關問題