class FWToolkit::Bitrise

Public Instance Methods

android(project_root, package_name) click to toggle source
# File lib/fwtoolkit/cli/bitrise.rb, line 27
def android(project_root, package_name)
  say "Creating android bitrise.yml file in: #{File.expand_path project_root}/bitrise.yml"
  destination_root = project_root
  bitrise_file = File.join(project_root, 'bitrise.yml')

  Projectfile.load_with_config! :project_name => package_name

  template_config = { :target_platform => Config.target_platform,
      :organization_name => Config.organization_name,
      :project_creator => Config.developer_name,
      :package_name => package_name } 
  template_config.merge! Projectfile.config

  template_directory "templates/bitrise/android", destination_root, template_config
end
generate(project_name, platform='ios') click to toggle source
# File lib/fwtoolkit/cli/bitrise.rb, line 16
def generate(project_name, platform='ios')
  destination_root = Dir.pwd

  if platform == 'android'
    invoke FWToolkit::Bitrise, 'android', [destination_root, project_name]
  else
    invoke FWToolkit::Bitrise, 'ios', [destination_root, project_name]
  end
end
ios(project_root, project_name) click to toggle source
# File lib/fwtoolkit/cli/bitrise.rb, line 44
def ios(project_root, project_name)
  say "Creating ios bitrise.yml file in: #{File.expand_path project_root}/bitrise.yml"
  destination_root = project_root
  bitrise_file = File.join(project_root, 'bitrise.yml')

  Projectfile.load_with_config! :project_name => project_name

  template_config = { :target_platform => Config.target_platform,
      :organization_name => Config.organization_name,
      :project_creator => Config.developer_name } 
  template_config.merge! Projectfile.config 

  template_directory "templates/bitrise/ios", destination_root, template_config
end