Sha256: 77d7f32ab24ad2fdf9672f293c54362596132349cf30c51f3771ebc16ccf4635

Contents?: true

Size: 994 Bytes

Versions: 7

Compression:

Stored size: 994 Bytes

Contents

module Pantograph
  module Actions
    class ImportAction < Action
      def self.run(params)
        # this is implemented in the pant_file.rb
      end

      #####################################################
      # @!group Documentation
      #####################################################

      def self.description
        'Import another Pantfile to use its lanes'
      end

      def self.details
        [
          'This is useful when sharing the same lanes across multiple projects',
          'The path must be relative to the Pantfile this is called from.'
        ].join("\n")
      end

      def self.available_options
      end

      def self.output
        []
      end

      def self.authors
        ['KrauseFx']
      end

      def self.is_supported?(platform)
        true
      end

      def self.example_code
        [
          'import("./path/to/other/Pantfile")'
        ]
      end

      def self.category
        :misc
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pantograph-0.1.22 pantograph/lib/pantograph/actions/import.rb
pantograph-0.1.21 pantograph/lib/pantograph/actions/import.rb
pantograph-0.1.20 pantograph/lib/pantograph/actions/import.rb
pantograph-0.1.19 pantograph/lib/pantograph/actions/import.rb
pantograph-0.1.17 pantograph/lib/pantograph/actions/import.rb
pantograph-0.1.16 pantograph/lib/pantograph/actions/import.rb
pantograph-0.1.15 pantograph/lib/pantograph/actions/import.rb