diff options
author | elijah <elijah@riseup.net> | 2012-12-12 23:04:52 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-12-12 23:04:52 -0800 |
commit | 4c86d6527bfa83faa124d4887b54be4702ca63b8 (patch) | |
tree | 3b596a6b07e15db2d7a308f9aacafe7070a181bc /lib/leap_cli/config | |
parent | 32f00970fd6e5dbae3772f7f854b425098d94098 (diff) |
`leap list --print` -- now it evaluates all node keys before printing
Diffstat (limited to 'lib/leap_cli/config')
-rw-r--r-- | lib/leap_cli/config/object.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/leap_cli/config/object.rb b/lib/leap_cli/config/object.rb index e866a1c..395ebe3 100644 --- a/lib/leap_cli/config/object.rb +++ b/lib/leap_cli/config/object.rb @@ -38,15 +38,20 @@ module LeapCli # greater control over how the yaml is exported (sorted keys, in particular). # def dump - self.evaluate_everything - self.late_evaluate_everything - self.ya2yaml(:syck_compatible => true) + evaluate + ya2yaml(:syck_compatible => true) end def dump_json + evaluate generate_json(self) end + def evaluate + evaluate_everything + late_evaluate_everything + end + ## ## FETCHING VALUES ## |