Class: Fastlane::Actions::OpenFolderAction

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

Class Method Summary collapse

Class Method Details

.authorsObject



17
18
19
# File 'lib/fastlane/plugin/open_folder/actions/open_folder_action.rb', line 17

def self.authors
  ["suqiang"]
end

.available_optionsObject



30
31
32
33
34
35
36
37
38
# File 'lib/fastlane/plugin/open_folder/actions/open_folder_action.rb', line 30

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :path,
                            env_name: "OPEN_FOLDER_YOUR_OPTION",
                         description: "path of your open",
                            optional: false,
                                type: String)
  ]
end

.descriptionObject



13
14
15
# File 'lib/fastlane/plugin/open_folder/actions/open_folder_action.rb', line 13

def self.description
  "open a path with finder"
end

.detailsObject



25
26
27
28
# File 'lib/fastlane/plugin/open_folder/actions/open_folder_action.rb', line 25

def self.details
  # Optional:
  "open a path with finder detail"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


40
41
42
43
44
45
46
# File 'lib/fastlane/plugin/open_folder/actions/open_folder_action.rb', line 40

def self.is_supported?(platform)
  # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
  # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
  #
  # [:ios, :mac, :android].include?(platform)
  true
end

.return_valueObject



21
22
23
# File 'lib/fastlane/plugin/open_folder/actions/open_folder_action.rb', line 21

def self.return_value
  # If your method provides a return value, you can describe here what it does
end

.run(params) ⇒ Object



7
8
9
10
11
# File 'lib/fastlane/plugin/open_folder/actions/open_folder_action.rb', line 7

def self.run(params)
  path = params[:path]
  system("open #{path}")
  Fastlane::Helper::OpenFolderHelper.show_message
end