Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in config_file_location #118

Merged
merged 1 commit into from
Nov 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/core/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Config # rubocop:disable Metrics/ClassLength
# command line options
:args, :options

CONFIG_FILE_LOCATIION = ".controlplane/controlplane.yml"
CONFIG_FILE_LOCATION = ".controlplane/controlplane.yml"

def initialize(args, options)
@args = args
Expand Down Expand Up @@ -117,13 +117,13 @@ def find_app_config_file
path = Pathname.new(".").expand_path

loop do
config_file = path + CONFIG_FILE_LOCATIION
config_file = path + CONFIG_FILE_LOCATION
break config_file if File.file?(config_file)

path = path.parent

if path.root?
raise "Can't find project config file at 'project_folder/#{CONFIG_FILE_LOCATIION}', please create it."
raise "Can't find project config file at 'project_folder/#{CONFIG_FILE_LOCATION}', please create it."
end
end
end
Expand Down