Class: Pantograph::Actions::GitPullAction

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

Constant Summary

Constants inherited from Pantograph::Action

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

Class Method Summary collapse

Methods inherited from Pantograph::Action

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

Class Method Details

.authorsObject



15
16
17
# File 'pantograph/lib/pantograph/actions/git_pull.rb', line 15

def self.authors
  ['johnknapprs']
end

.available_optionsObject



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

def self.available_options
end

.categoryObject



29
30
31
# File 'pantograph/lib/pantograph/actions/git_pull.rb', line 29

def self.category
  :source_control
end

.descriptionObject



8
9
10
# File 'pantograph/lib/pantograph/actions/git_pull.rb', line 8

def self.description
  'Executes a simple git pull command'
end

.example_codeObject



23
24
25
26
27
# File 'pantograph/lib/pantograph/actions/git_pull.rb', line 23

def self.example_code
  [
    'git_pull'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:



19
20
21
# File 'pantograph/lib/pantograph/actions/git_pull.rb', line 19

def self.is_supported?(platform)
  true
end

.run(params) ⇒ Object



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

def self.run(params)
  Actions.sh('git pull')
end