Class: Fastlane::Actions::YamlWritter
- Inherits:
-
Object
- Object
- Fastlane::Actions::YamlWritter
- Defined in:
- lib/fastlane/plugin/flutter_version_manager/actions/flutter_version_manager_action.rb
Instance Method Summary collapse
-
#initialize(yaml_path) ⇒ YamlWritter
constructor
A new instance of YamlWritter.
- #write(yaml) ⇒ Object
Constructor Details
#initialize(yaml_path) ⇒ YamlWritter
Returns a new instance of YamlWritter.
81 82 83 |
# File 'lib/fastlane/plugin/flutter_version_manager/actions/flutter_version_manager_action.rb', line 81 def initialize(yaml_path) @yaml_path = yaml_path end |
Instance Method Details
#write(yaml) ⇒ Object
85 86 87 |
# File 'lib/fastlane/plugin/flutter_version_manager/actions/flutter_version_manager_action.rb', line 85 def write(yaml) File.open(@yaml_path, "w") { |file| file.write(yaml.to_yaml) } end |