lib/neeto_deploy/cli.rb in neetodeploy-1.1.4 vs lib/neeto_deploy/cli.rb in neetodeploy-1.1.6
- old
+ new
@@ -1,8 +1,9 @@
# frozen_string_literal: true
require "thor"
+require 'tty-spinner'
# TODO: make this like neetob
module NeetoDeploy
class CLI < Thor
@@ -10,10 +11,13 @@
require_relative "cli/login/base"
require_relative "cli/exec/base"
require_relative "cli/logs/base"
require_relative "cli/env/commands"
require_relative "cli/redis/commands"
+ require_relative "cli/pg/commands"
+ require_relative "cli/addon/commands"
+ require_relative "cli/autoscaling_config/commands"
def self.start(*)
super
end
@@ -38,7 +42,16 @@
CLI::Logs::Base.new(options[:app], options[:process_type]).process!
end
desc "redis", "Manage redis addons"
subcommand "redis", Redis::Commands
+
+ desc "pg", "Manage postgresql addons"
+ subcommand "pg", Pg::Commands
+
+ desc "addon", "Manage addons"
+ subcommand "addon", Addon::Commands
+
+ desc "autoscaling_config", "Manage autoscaling"
+ subcommand "autoscaling_config", AutoscalingConfig::Commands
end
end