lib/aptible/cli/agent.rb in aptible-cli-0.13.0 vs lib/aptible/cli/agent.rb in aptible-cli-0.14.0

- old
+ new

@@ -9,10 +9,13 @@ require_relative 'helpers/token' require_relative 'helpers/operation' require_relative 'helpers/environment' require_relative 'helpers/app' require_relative 'helpers/database' +require_relative 'helpers/app_or_database' +require_relative 'helpers/vhost' +require_relative 'helpers/vhost/option_set_builder' require_relative 'helpers/tunnel' require_relative 'subcommands/apps' require_relative 'subcommands/config' require_relative 'subcommands/db' @@ -24,10 +27,11 @@ require_relative 'subcommands/restart' require_relative 'subcommands/ssh' require_relative 'subcommands/backup' require_relative 'subcommands/operation' require_relative 'subcommands/inspect' +require_relative 'subcommands/endpoints' module Aptible module CLI class Agent < Thor include Thor::Actions @@ -45,10 +49,11 @@ include Subcommands::Restart include Subcommands::SSH include Subcommands::Backup include Subcommands::Operation include Subcommands::Inspect + include Subcommands::Endpoints # Forward return codes on failures. def self.exit_on_failure? true end @@ -114,11 +119,13 @@ end private def deprecated(msg) - say "DEPRECATION NOTICE: #{msg}" - say 'Please contact support@aptible.com with any questions.' + $stderr.puts yellow([ + "DEPRECATION NOTICE: #{msg}", + 'Please contact support@aptible.com with any questions.' + ].join("\n")) end def nag_toolbelt # If you're reading this, it's possible you decided to not use the # toolbelt and are a looking for a way to disable this warning. Look no