Sha256: a2c03d15864f81a7a9bdabf9bd6f142e695cf33ec71e2457f12441d782631530
Contents?: true
Size: 1.53 KB
Versions: 3
Compression:
Stored size: 1.53 KB
Contents
module Fastlane module Actions module SharedValues end # Raises an exception and stop the lane execution if not using bundle exec to run fastlane class EnsureBundleExecAction < Action def self.run(params) return if PluginManager.new.gemfile_path.nil? if FastlaneCore::Helper.bundler? UI.success("Using bundled fastlane ✅") else UI.user_error!("fastlane detected a Gemfile in the current directory. However, it seems like you didn't use `bundle exec`. Use `bundle exec fastlane #{ARGV.join(' ')}` instead.") end end ##################################################### # @!group Documentation ##################################################### def self.description "Raises an exception if not using `bundle exec` to run fastlane" end def self.details [ "This action will check if you are using `bundle exec` to run fastlane.", "You can put it into `before_all` to make sure that fastlane is ran using the `bundle exec fastlane` command." ].join("\n") end def self.available_options [] end def self.output [] end def self.author ['rishabhtayal'] end def self.example_code [ "ensure_bundle_exec" ] end def self.category :misc end def self.is_supported?(platform) true end end end end
Version data entries
3 entries across 3 versions & 1 rubygems