dyoder / befog

Command line utility for cloud management
MIT License
4 stars 4 forks source link

Using the default configuration file doesn't save conf #10

Closed flores closed 12 years ago

flores commented 12 years ago

specifying a config file gives nice yaml-like syntax (yay!)

lo@puter:~/befog$ bin/befog configure downoi -p test
lo@puter:~/befog$ cat test
--- 
default: 
  banks: 
    downoi: 
      configuration: {}
lo@puter:~/befog$ bin/befog configure tonina -p test
lo@puter:~/befog$ cat !$
cat test
--- 
default: 
  banks: 
    tonina: 
      configuration: {}

    downoi: 
      configuration: {}

But not specifying a config file, which defaults to ~/.befog, does not act as expected.

lo@puter:~/befog$ bin/befog configure downoi 
lo@puter:~/befog$ cat ~/.befog
--- false
lo@puter:~/befog$ bin/befog configure tonina 
lo@puter:~/befog$ cat ~/.befog
--- false
lo@puter:~/befog$ # clear out the default file, try again
lo@puter:~/befog$ echo '' > ~/.befog 
lo@puter:~/befog$ cat !$
cat ~/.befog

lo@puter:~/befog$ bin/befog configure tonina 
lo@puter:~/befog$ cat ~/.befog
--- false
dyoder commented 12 years ago

This is a dupe of #9.

dyoder commented 12 years ago

Not really a dupe. Just related to #9.