lib/aptible/cli/agent.rb in aptible-cli-0.18.2 vs lib/aptible/cli/agent.rb in aptible-cli-0.18.3

- old
+ new

@@ -16,10 +16,11 @@ require_relative 'helpers/vhost' require_relative 'helpers/vhost/option_set_builder' require_relative 'helpers/tunnel' require_relative 'helpers/system' require_relative 'helpers/security_key' +require_relative 'helpers/config_path' require_relative 'subcommands/apps' require_relative 'subcommands/config' require_relative 'subcommands/db' require_relative 'subcommands/domains' @@ -41,10 +42,11 @@ include Thor::Actions include Helpers::Token include Helpers::Ssh include Helpers::System + include Helpers::ConfigPath include Subcommands::Apps include Subcommands::Config include Subcommands::DB include Subcommands::Domains include Subcommands::Environment @@ -207,10 +209,10 @@ # 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 # further: to do so, edit the file `.aptible/nag_toolbelt` and put a # timestamp far into the future. For example, writing 1577836800 will # disable the warning until 2020. - nag_file = File.join ENV['HOME'], '.aptible', 'nag_toolbelt' + nag_file = File.join aptible_config_path, 'nag_toolbelt' nag_frequency = 12.hours last_nag = begin Integer(File.read(nag_file)) rescue Errno::ENOENT, ArgumentError