Skip to content

Commit 0545255

Browse files
committed
Rename file
1 parent e1bb0cc commit 0545255

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22
module VCAP::CloudController
3-
class ConfigFile
3+
class StackConfigFile
44
def initialize(file_path)
55
@hash = YAMLConfig.safe_load_file(file_path).tap do |h|
66
Schema.validate(h)

app/models/runtime/stack.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def run_rootfs_image
6666
end
6767

6868
def self.configure(file_path)
69-
@config_file = (ConfigFile.new(file_path) if file_path)
69+
@config_file = (StackConfigFile.new(file_path) if file_path)
7070
end
7171

7272
def self.populate
@@ -99,4 +99,4 @@ def self.populate_from_hash(hash)
9999
end
100100
end
101101
end
102-
end
102+
end

lib/cloud_controller/check_stacks.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class CheckStacks
44

55
def initialize(config, db)
66
@config = config
7-
@stack_config = VCAP::CloudController::ConfigFile.new(config.get(:stacks_file))
7+
@stack_config = VCAP::CloudController::StackConfigFile.new(config.get(:stacks_file))
88
@db = db
99
end
1010

@@ -20,7 +20,6 @@ def validate_stacks
2020
def validate_stack(deprecated_stack)
2121
configured_stacks = @stack_config.stacks
2222
deprecated_stack_in_config = (configured_stacks.find { |stack| stack['name'] == deprecated_stack }).present?
23-
2423
return if deprecated_stack_in_config
2524

2625
deprecated_stack_in_db = false
@@ -30,4 +29,4 @@ def validate_stack(deprecated_stack)
3029
raise "rake task 'stack_check' failed, stack '#{deprecated_stack}' not supported" if deprecated_stack_in_db
3130
end
3231
end
33-
end
32+
end

0 commit comments

Comments
 (0)