Class: Fastlane::Actions::JazzyAction

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

Constant Summary

Constants inherited from Fastlane::Action

Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, author, deprecated_notes, details, lane_context, method_missing, other_action, return_type, sample_return_value, shell_out_should_use_bundle_exec?, step_text

Class Method Details

.authorsObject



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

def self.authors
  ["KrauseFx"]
end

.available_optionsObject



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'fastlane/lib/fastlane/actions/jazzy.rb', line 20

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
    ),
    FastlaneCore::ConfigItem.new(
      key: :module_version,
      env_name: 'FL_JAZZY_MODULE_VERSION',
      description: 'Version string to use as part of the the default docs title and inside the docset',
      is_string: true,
      optional: true
    )
  ]
end

.categoryObject



60
61
62
# File 'fastlane/lib/fastlane/actions/jazzy.rb', line 60

def self.category
  :documentation
end

.descriptionObject



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

def self.description
  "Generate docs using Jazzy"
end

.example_codeObject



53
54
55
56
57
58
# File 'fastlane/lib/fastlane/actions/jazzy.rb', line 53

def self.example_code
  [
    'jazzy',
    'jazzy(config: ".jazzy.yaml", module_version: "2.1.37")'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:



49
50
51
# File 'fastlane/lib/fastlane/actions/jazzy.rb', line 49

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

.outputObject



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

def self.output
end

.return_valueObject



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

def self.return_value
end

.run(params) ⇒ Object



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

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