aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/compile.rb
blob: 3e9d42d7b720d2829f42a450c6d10d5be696bf3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module LeapCli
  module Commands

    desc 'Compile json files to hiera configs'
    command :compile do |c|
      c.action do |global_options,options,args|
        manager.load(Path.provider)
        ensure_dir(Path.hiera)
        manager.export(Path.hiera)
      end
    end

  end
end