pantograph/lib/pantograph/actions/git_pull.rb in pantograph-0.1.14 vs pantograph/lib/pantograph/actions/git_pull.rb in pantograph-0.1.15

- old
+ new

@@ -1,48 +1,29 @@ module Pantograph module Actions class GitPullAction < Action def self.run(params) - commands = [] - - unless params[:only_tags] - commands += ["git pull &&"] - end - - commands += ["git fetch --tags"] - - Actions.sh(commands.join(' ')) + Actions.sh('git pull') end def self.description - "Executes a simple git pull command" + 'Executes a simple git pull command' end def self.available_options - [ - PantographCore::ConfigItem.new(key: :only_tags, - description: "Simply pull the tags, and not bring new commits to the current branch from the remote", - is_string: false, - optional: true, - default_value: false, - verify_block: proc do |value| - UI.user_error!("Please pass a valid value for only_tags. Use one of the following: true, false") unless value.kind_of?(TrueClass) || value.kind_of?(FalseClass) - end) - ] end def self.authors - ["KrauseFx", "JaviSoto"] + ['johnknapprs'] end def self.is_supported?(platform) true end def self.example_code [ - 'git_pull', - 'git_pull(only_tags: true) # only the tags, no commits' + 'git_pull' ] end def self.category :source_control