Class: Fastlane::Actions::GradlePropertiesAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/gradle_properties/actions/gradle_properties_action.rb

Class Method Summary collapse

Class Method Details

.authorsObject



18
19
20
# File 'lib/fastlane/plugin/gradle_properties/actions/gradle_properties_action.rb', line 18

def self.authors
  ["Ryo Sakaguchi"]
end

.available_optionsObject



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/fastlane/plugin/gradle_properties/actions/gradle_properties_action.rb', line 30

def self.available_options
  [
    FastlaneCore::ConfigItem.new(
      key: :path,
      env_name: "PROPERTY_FILE_PATH",
      description: "File path",
      optional: false,
      type: String,
      default_value: "gradle.properties"
      ),
    FastlaneCore::ConfigItem.new(
      key: :property_name,
      env_name: "PROPERTY",
      description: "Property name that you want to retrieve",
      optional: false,
      type: String
      )
  ]
end

.descriptionObject



14
15
16
# File 'lib/fastlane/plugin/gradle_properties/actions/gradle_properties_action.rb', line 14

def self.description
  "Read properties in your Fastfile easily"
end

.detailsObject



26
27
28
# File 'lib/fastlane/plugin/gradle_properties/actions/gradle_properties_action.rb', line 26

def self.details
  ""
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/fastlane/plugin/gradle_properties/actions/gradle_properties_action.rb', line 50

def self.is_supported?(platform)
  true
end

.return_valueObject



22
23
24
# File 'lib/fastlane/plugin/gradle_properties/actions/gradle_properties_action.rb', line 22

def self.return_value
  "Property value"
end

.run(params) ⇒ Object



7
8
9
10
11
12
# File 'lib/fastlane/plugin/gradle_properties/actions/gradle_properties_action.rb', line 7

def self.run(params)
  Helper::GradlePropertiesHelper.load_property(
    params[:path],
    params[:property_name].to_sym
  )
end