scttnlsn / dandelion

Incremental Git repository deployment.
http://scttnlsn.github.io/dandelion
MIT License
738 stars 60 forks source link

Not support exclude? #33

Closed mattfelten closed 11 years ago

mattfelten commented 11 years ago

For some reason, I can't seem to deploy one of my repositories if there are excludes set. Once I remove them, it works fine. This is the error I'm getting:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 8, col 3: ` - .gitignore' (ArgumentError)
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:133:in `load'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:144:in `load_file'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:143:in `open'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:143:in `load_file'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/command.rb:89:in `initialize'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/application.rb:36:in `new'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/application.rb:36:in `execute'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/application.rb:7:in `execute'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/dandelion:7
    from /usr/bin/dandelion:23:in `load'
    from /usr/bin/dandelion:23

Any ideas whats up? I just updated the gem to see if that fixed it but it didn't.

scttnlsn commented 11 years ago

That looks like a syntax error in the dandelion.yml file. Try indenting 4 spaces:

exclude:
    - .gitignore
mattfelten commented 11 years ago

Yup, that was it. Tabs vs spaces. Works great now. Thanks!