Class: Muxify::Linker
- Inherits:
-
Object
- Object
- Muxify::Linker
- Defined in:
- lib/muxify/linker.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(root:) ⇒ Linker
constructor
A new instance of Linker.
Constructor Details
Class Method Details
.call(**args) ⇒ Object
10 11 12 |
# File 'lib/muxify/linker.rb', line 10 def self.call(**args) new(**args).call end |
Instance Method Details
#call ⇒ Object
18 19 20 21 |
# File 'lib/muxify/linker.rb', line 18 def call FileUtils.mkdir_p(TMUXINATOR_CONFIG_PATH) File.open(config_path, 'w') { |f| f << contents } end |