Sha256: 2a50b3a8b9072628228041f1a06c607735168414d16ef2f201c32257fbdf0ec5

Contents?: true

Size: 1.46 KB

Versions: 325

Compression:

Stored size: 1.46 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 don't use `bundle exec`. Use `bundle exec fastlane #{ARGV.join(' ')}`")
        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` and make sure that fastlane is run using `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

325 entries across 325 versions & 2 rubygems

Version Path
fastlane-2.136.0 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.135.2 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.135.1 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.135.0 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.134.0 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.133.0 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0.beta.20190930200026 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0.beta.20190929200020 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0.beta.20190928200106 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0.beta.20190927200017 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0.beta.20190926200023 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0.beta.20190925200108 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0.beta.20190924200030 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0.beta.20190923200017 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0.beta.20190922200014 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0.beta.20190921200021 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0.beta.20190920200012 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0.beta.20190919200100 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb
fastlane-2.132.0.beta.20190918200023 fastlane/lib/fastlane/actions/ensure_bundle_exec.rb