Module: Fastlane::Branch::FastlaneMarkdownFormat

Includes:
BranchIOCLI::Format::MarkdownFormat, FastlaneFormat
Defined in:
lib/fastlane/plugin/branch/fastlane_format.rb

Instance Method Summary collapse

Methods included from FastlaneFormat

#option

Instance Method Details

#local_render(template) ⇒ Object



21
22
23
24
# File 'lib/fastlane/plugin/branch/fastlane_format.rb', line 21

def local_render(template)
  path = File.expand_path(File.join("..", "..", "..", "..", "..", "assets", "templates", "#{template}.erb"), __FILE__)
  ERB.new(File.read(path)).result binding
end

#table_option(option) ⇒ Object



26
27
28
# File 'lib/fastlane/plugin/branch/fastlane_format.rb', line 26

def table_option(option)
  "|#{option.name}|#{option.description}|#{option.env_name}|#{option.type.nil? ? 'Boolean' : option.type.name}|#{option.default_value}|"
end