lib/neetob/cli/neeto_deploy/commands.rb in neetob-0.4.33 vs lib/neetob/cli/neeto_deploy/commands.rb in neetob-0.4.34

- old
+ new

@@ -1,15 +1,29 @@ # frozen_string_literal: true require "thor" require_relative "config_vars/commands" +require_relative "./autoscaling_config" +require_relative "./scheduled_exports" module Neetob class CLI module NeetoDeploy class Commands < Thor desc "config_vars", "Interact with the config(env) variables on neetoDeploy apps" subcommand "config_vars", ConfigVars::Commands + + desc "autoscaling_config", "Get the autoscaling config of an app deployed on NeetoDeploy" + option :app, type: :string, aliases: :a, desc: "App name" + def autoscaling_config + AutoscalingConfig.new(options[:app]).run + end + + desc "scheduled_exports", "Get the scheduled exports setting of an app's primary database deployed on NeetoDeploy" + option :app, type: :string, aliases: :a, desc: "App name" + def scheduled_exports + ScheduledExports.new(options[:app]).run + end end end end end