cluster/lib/cluster/commands_generator.rb in sct-0.1.20 vs cluster/lib/cluster/commands_generator.rb in sct-0.1.21

- old
+ new

@@ -81,10 +81,24 @@ c.option '--all', 'delete all pods' c.action do |args, options| Cluster::Runner.new.delete_stalled_pods if options.stalled - UI.important("Currently its not possible to delete all pods") if options.all + Cluster::Runner.new.delete_all_pods if options.all + + Cluster::Runner.new.delete_pods(args) if !args.empty? + + end + end + + command :'apply pods' do |c| + c.syntax = 'sct cluster apply pods' + c.description = 'apply pods from the k8s folder' + + c.action do |args, options| + + Cluster::Runner.new.apply_pods + end end default_command :status \ No newline at end of file