summaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/compile.rb
blob: 8764e5235453f6b71b554b49036cfeb0b7404e05 (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)
        Path.ensure_dir(Path.hiera)
        manager.export(Path.hiera)
      end
    end

  end
end