Class: Virtuadeploy::Command
- Inherits:
-
Thor
- Object
- Thor
- Virtuadeploy::Command
- Defined in:
- lib/virtuadeploy/command.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#open_utils(filename, options) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/virtuadeploy/command.rb', line 3 def open_utils(filename, ) filename = File.join(__dir__, '..', '..', 'bin', 'utils', filename) content = File.read(filename) .each do |key, value| content.gsub!("{{#{key}}}", value) end content end |