class Fastlane::Helper::MoronepoHelper

Public Class Methods

dart_executable() click to toggle source
# File lib/fastlane/plugin/moronepo/helper/moronepo_helper.rb, line 11
def self.dart_executable
  "flutter"
end
moronepo_executable() click to toggle source
# File lib/fastlane/plugin/moronepo/helper/moronepo_helper.rb, line 15
def self.moronepo_executable
  "#{dart_executable} pub global run moronepo"
end
run_moronepo(configuration) click to toggle source
# File lib/fastlane/plugin/moronepo/helper/moronepo_helper.rb, line 19
def self.run_moronepo(configuration)
  cmd = []
  cmd << moronepo_executable

  working_directory = configuration.working_directory
  if working_directory
    cmd << "--working-directory"
    cmd << working_directory
  end

  project = configuration.project
  if project
    cmd << "--project"
    cmd << project
  end

  filter = configuration.filter
  if filter
    cmd << "--filter"
    cmd << filter.join(',')
  end

  cmd << configuration.command
  Actions.sh(cmd.join(' '))
end