Class: Fastlane::Actions::YamlWritter

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/flutter_version_manager/actions/flutter_version_manager_action.rb

Instance Method Summary collapse

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