diff options
author | elijah <elijah@riseup.net> | 2012-10-09 00:05:44 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-10-09 00:05:44 -0700 |
commit | 73b126976ad7843eb47a84944cf191bf05b14216 (patch) | |
tree | 918656f8d7c637e8c7a8f0c010eff55bfd98ae1b /lib/leap_cli/commands/compile.rb | |
parent | 578ac2f5dc7432317d7a022bed9d869ab89ee45c (diff) | |
download | leap_cli-73b126976ad7843eb47a84944cf191bf05b14216.tar.gz leap_cli-73b126976ad7843eb47a84944cf191bf05b14216.tar.bz2 |
fixed paths
Diffstat (limited to 'lib/leap_cli/commands/compile.rb')
-rw-r--r-- | lib/leap_cli/commands/compile.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/leap_cli/commands/compile.rb b/lib/leap_cli/commands/compile.rb new file mode 100644 index 0000000..6b38de5 --- /dev/null +++ b/lib/leap_cli/commands/compile.rb @@ -0,0 +1,15 @@ +module LeapCli + module Commands + + desc 'Compile json files to hiera configs' + command :compile do |c| + c.action do |global_options,options,args| + manager = ConfigManager.new + manager.load(Path.provider) + Path.ensure_dir(Path.hiera) + manager.export(Path.hiera) + end + end + + end +end
\ No newline at end of file |