summaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/deploy.rb
blob: 9ec984c3aba1ce719945b076d240a2f17c396256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module LeapCli
  module Commands

    desc 'Apply recipes to a node or set of nodes'
    long_desc 'The node filter can be the name of a node, service, or tag.'
    arg_name '<node filter>'
    command :deploy do |c|
      c.action do |global_options,options,args|
        nodes = manager.filter(args)
        say "Deploying to these nodes: #{nodes.keys.join(', ')}"
        if agree "Continue? "
          say "deploy not yet implemented"
        else
          say "OK. Bye."
        end
      end
    end

  end
end