Class: FWToolkit::Bitrise
Instance Method Summary
collapse
Methods included from ThorUtils
included
#run, #run!, #run_base, #template_directory
Instance Method Details
#android(project_root, package_name) ⇒ Object
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# 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') ⇒ Object
16
17
18
19
20
21
22
23
24
|
# 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) ⇒ Object
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# 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
|