Class: Kitsune::Kit::Configuration::Compose
- Inherits:
-
Object
- Object
- Kitsune::Kit::Configuration::Compose
- Defined in:
- lib/kitsune/kit/configuration.rb
Constant Summary collapse
- MODES =
%w[generated overlay custom].freeze
Instance Method Summary collapse
-
#initialize(mode: "generated", file: nil, allow_unsafe: false, root: Dir.pwd) ⇒ Compose
constructor
A new instance of Compose.
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) = file.to_s.empty? ? nil : Pathname(file.to_s).(root).to_s super(mode: mode.to_s, file: , allow_unsafe: boolean(allow_unsafe)) end |