Class: Fastlane::Actions::FrameitAction
- Inherits:
-
Object
- Object
- Fastlane::Actions::FrameitAction
- Defined in:
- lib/fastlane/actions/frameit.rb
Class Method Summary collapse
Class Method Details
.run(params) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fastlane/actions/frameit.rb', line 7 def self.run(params) return if Helper.test? require 'frameit' color = Frameit::Editor::Color::BLACK color = Frameit::Editor::Color::SILVER if [:silver, :white].include?(params.first) screenshots_folder = Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH] screenshots_folder ||= FastlaneFolder.path Dir.chdir(screenshots_folder) do Frameit::Editor.new.run('.', color) end end |