Class: Pantograph::Actions::ImportAction

Inherits:
Pantograph::Action show all
Defined in:
pantograph/lib/pantograph/actions/import.rb

Constant Summary

Constants inherited from Pantograph::Action

Pantograph::Action::AVAILABLE_CATEGORIES, Pantograph::Action::RETURN_TYPES

Documentation collapse

Class Method Summary collapse

Methods inherited from Pantograph::Action

action_name, author, deprecated_notes, lane_context, method_missing, other_action, return_type, return_value, sample_return_value, shell_out_should_use_bundle_exec?, step_text

Class Method Details

.authorsObject



30
31
32
# File 'pantograph/lib/pantograph/actions/import.rb', line 30

def self.authors
  ['KrauseFx']
end

.available_optionsObject



23
24
# File 'pantograph/lib/pantograph/actions/import.rb', line 23

def self.available_options
end

.categoryObject



44
45
46
# File 'pantograph/lib/pantograph/actions/import.rb', line 44

def self.category
  :misc
end

.descriptionObject



12
13
14
# File 'pantograph/lib/pantograph/actions/import.rb', line 12

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

.detailsObject



16
17
18
19
20
21
# File 'pantograph/lib/pantograph/actions/import.rb', line 16

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

.example_codeObject



38
39
40
41
42
# File 'pantograph/lib/pantograph/actions/import.rb', line 38

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

.is_supported?(platform) ⇒ Boolean

Returns:



34
35
36
# File 'pantograph/lib/pantograph/actions/import.rb', line 34

def self.is_supported?(platform)
  true
end

.outputObject



26
27
28
# File 'pantograph/lib/pantograph/actions/import.rb', line 26

def self.output
  []
end

.run(params) ⇒ Object



4
5
6
# File 'pantograph/lib/pantograph/actions/import.rb', line 4

def self.run(params)
  # this is implemented in the pant_file.rb
end