Class: Kitsune::Kit::Configuration::Compose

Inherits:
Object
  • Object
show all
Defined in:
lib/kitsune/kit/configuration.rb

Constant Summary collapse

MODES =
%w[generated overlay custom].freeze

Instance Method Summary collapse

Constructor Details

#initialize(mode: "generated", file: nil, allow_unsafe: false, root: Dir.pwd) ⇒ Compose

Returns a new instance of Compose.



50
51
52
53
# File 'lib/kitsune/kit/configuration.rb', line 50

def initialize(mode: "generated", file: nil, allow_unsafe: false, root: Dir.pwd)
  expanded_file = file.to_s.empty? ? nil : Pathname(file.to_s).expand_path(root).to_s
  super(mode: mode.to_s, file: expanded_file, allow_unsafe: boolean(allow_unsafe))
end