Class: Fastlane::Actions::ProduceAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES
Class Method Summary
collapse
Instance Method Summary
collapse
action_name, authors, details, lane_context, method_missing, other_action, return_value, sample_return_value, sh, step_text
Class Method Details
.author ⇒ Object
52
53
54
|
# File 'lib/fastlane/actions/produce.rb', line 52
def self.author
"KrauseFx"
end
|
.available_options ⇒ Object
41
42
43
44
|
# File 'lib/fastlane/actions/produce.rb', line 41
def self.available_options
require 'produce'
Produce::Options.available_options
end
|
.category ⇒ Object
74
75
76
|
# File 'lib/fastlane/actions/produce.rb', line 74
def self.category
:misc
end
|
.description ⇒ Object
29
30
31
|
# File 'lib/fastlane/actions/produce.rb', line 29
def self.description
"Creates the given application on iTC and the Dev Portal if necessary"
end
|
.example_code ⇒ Object
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# File 'lib/fastlane/actions/produce.rb', line 60
def self.example_code
[
'produce(
username: "[email protected]",
app_identifier: "com.krausefx.app",
app_name: "MyApp",
language: "English",
app_version: "1.0",
sku: "123",
team_name: "SunApps GmbH" # Only necessary when in multiple teams.
)'
]
end
|
.is_supported?(platform) ⇒ Boolean
56
57
58
|
# File 'lib/fastlane/actions/produce.rb', line 56
def self.is_supported?(platform)
platform == :ios
end
|
.output ⇒ Object
46
47
48
49
50
|
# File 'lib/fastlane/actions/produce.rb', line 46
def self.output
[
['PRODUCE_APPLE_ID', 'The Apple ID of the newly created app. You probably need it for `deliver`']
]
end
|
.run(params) ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/fastlane/actions/produce.rb', line 8
def self.run(params)
require 'produce'
return if Helper.test?
begin
FastlaneCore::UpdateChecker.start_looking_for_update('produce')
Produce.config = params
Dir.chdir(FastlaneFolder.path || Dir.pwd) do
apple_id = Produce::Manager.start_producing.to_s
Actions.lane_context[SharedValues::PRODUCE_APPLE_ID] = apple_id
ENV['PRODUCE_APPLE_ID'] = apple_id
end
ensure
FastlaneCore::UpdateChecker.show_update_status('produce', Produce::VERSION)
end
end
|
Instance Method Details
#details ⇒ Object
33
34
35
36
37
38
39
|
# File 'lib/fastlane/actions/produce.rb', line 33
def details
[
'Create new apps on iTunes Connect and Apple Developer Portal. If the app already exists, `produce` will not do anything.',
'For more information about produce, visit its GitHub page:',
'https://github.com/fastlane/fastlane/tree/master/produce'
].join(' ')
end
|