Module: Fastlane::Branch::FastlaneMarkdownFormat

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

Instance Method Summary collapse

Instance Method Details

#local_render(template) ⇒ Object



8
9
10
11
# File 'lib/fastlane/plugin/branch/fastlane_format.rb', line 8

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

#option(opt) ⇒ Object



17
18
19
# File 'lib/fastlane/plugin/branch/fastlane_format.rb', line 17

def option(opt)
  highlight opt.to_s
end

#table_option(option) ⇒ Object



13
14
15
# File 'lib/fastlane/plugin/branch/fastlane_format.rb', line 13

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