Class: Fastlane::Actions::BwOpenFinderAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::BwOpenFinderAction
- Defined in:
- lib/fastlane/plugin/bw_open_finder/actions/bw_open_finder_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
16 17 18 |
# File 'lib/fastlane/plugin/bw_open_finder/actions/bw_open_finder_action.rb', line 16 def self. ["xubowen"] end |
.available_options ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'lib/fastlane/plugin/bw_open_finder/actions/bw_open_finder_action.rb', line 29 def self. [ FastlaneCore::ConfigItem.new( key: :path, description: "使用 open 打开的文件夹路径", type: String) ] end |
.description ⇒ Object
12 13 14 |
# File 'lib/fastlane/plugin/bw_open_finder/actions/bw_open_finder_action.rb', line 12 def self.description "this is tool for mac osx to open finder" end |
.details ⇒ Object
24 25 26 27 |
# File 'lib/fastlane/plugin/bw_open_finder/actions/bw_open_finder_action.rb', line 24 def self.details # Optional: "this is tool for mac osx to open finder" end |
.is_supported?(platform) ⇒ Boolean
38 39 40 41 42 43 44 |
# File 'lib/fastlane/plugin/bw_open_finder/actions/bw_open_finder_action.rb', line 38 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_value ⇒ Object
20 21 22 |
# File 'lib/fastlane/plugin/bw_open_finder/actions/bw_open_finder_action.rb', line 20 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 |
# File 'lib/fastlane/plugin/bw_open_finder/actions/bw_open_finder_action.rb', line 7 def self.run(params) path = params[:path] system("open #{path}") end |