OSC / ood_appkit

https://osc.github.io/Open-OnDemand/
MIT License
1 stars 2 forks source link

Rails generator crashes when app configuration is not present. #25

Closed brianmcmichael closed 7 years ago

brianmcmichael commented 7 years ago

When generating controllers on Oakley an error occurs because the clusters are not configured on the system.

A generator error should not occur if the config is not set.

    generate    controller
fatal: Not a git repository (or any parent up to mount point /users/appl)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /users/appl)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
/users/appl/bmcmichael/ondemand/dev/myapp/vendor/bundle/ruby/gems/ood_appkit-0.3.2/lib/ood_appkit/config_parser.rb:32:in `parse': invalid config path: /etc/ood/config/clusters.d (OodAppkit::ConfigParser::InvalidConfigPath)
        from /users/appl/bmcmichael/ondemand/dev/myapp/vendor/bundle/ruby/gems/ood_appkit-0.3.2/lib/ood_appkit/configuration.rb:69:in `set_default_configuration'