Class: Fastlane::Actions::JazzyAction

Inherits:
Fastlane::Action show all
Defined in:
lib/fastlane/actions/jazzy.rb

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, author, sh, step_text

Class Method Details

.authorsObject



40
41
42
# File 'lib/fastlane/actions/jazzy.rb', line 40

def self.authors
  ["KrauseFx"]
end

.available_optionsObject



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/fastlane/actions/jazzy.rb', line 22

def self.available_options
  [
    FastlaneCore::ConfigItem.new(
      key: :config,
      env_name: 'FL_JAZZY_CONFIG',
      description: 'Path to jazzy config file',
      is_string: true,
      optional: true
    )
  ]
end

.descriptionObject



15
16
17
# File 'lib/fastlane/actions/jazzy.rb', line 15

def self.description
  "Generate docs using Jazzy"
end

.detailsObject



19
20
# File 'lib/fastlane/actions/jazzy.rb', line 19

def self.details
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/fastlane/actions/jazzy.rb', line 44

def self.is_supported?(platform)
  [:ios, :mac].include?(platform)
end

.outputObject



34
35
# File 'lib/fastlane/actions/jazzy.rb', line 34

def self.output
end

.return_valueObject



37
38
# File 'lib/fastlane/actions/jazzy.rb', line 37

def self.return_value
end

.run(params) ⇒ Object



4
5
6
7
8
9
# File 'lib/fastlane/actions/jazzy.rb', line 4

def self.run(params)
  Actions.verify_gem!('jazzy')
  command = "jazzy"
  command << " --config #{params[:config]}" if params[:config]
  Actions.sh(command)
end