This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This way we can remove quite some code from Portus in regards to the management of the configuration. Signed-off-by: Miquel Sabaté Solà <[email protected]>
- Loading branch information
Showing
10 changed files
with
11 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
namespace :portus do | ||
desc "Get general info about the running instance" | ||
task info: :environment do | ||
# We cannot pass it with the dependency-syntax because we need to pass it an | ||
# argument. | ||
Rake::Task["cconfig:info"].reenable | ||
Rake::Task["cconfig:info"].invoke("portus") | ||
|
||
puts "\nPortus version: #{Version.value}" | ||
default = File.join(Rails.root, "config", "config.yml") | ||
local = ENV["PORTUS_LOCAL_CONFIG_PATH"] || File.join(Rails.root, "config", "config-local.yml") | ||
cfg = Portus::Config.new(default, local) | ||
puts "Portus has evaluated the following configuration:\n#{cfg}" | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.