aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/compile.rb
blob: 6b38de5139075b9837da856cb731978aa12aa13e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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