class Pantograph::Actions::GitSubmoduleUpdateAction
Public Class Methods
available_options()
click to toggle source
# File pantograph/lib/pantograph/actions/git_submodule_update.rb, line 22 def self.available_options [ PantographCore::ConfigItem.new( key: :recursive, description: 'Add the `--recursive` flag', type: Boolean, default_value: false ), PantographCore::ConfigItem.new( key: :init, description: 'Add the `--init` flag', type: Boolean, is_string: false, default_value: false ) ] end
category()
click to toggle source
# File pantograph/lib/pantograph/actions/git_submodule_update.rb, line 54 def self.category :source_control end
description()
click to toggle source
@!group Documentation
# File pantograph/lib/pantograph/actions/git_submodule_update.rb, line 18 def self.description 'Execute git submodule command' end
is_supported?(platform)
click to toggle source
# File pantograph/lib/pantograph/actions/git_submodule_update.rb, line 50 def self.is_supported?(platform) true end
output()
click to toggle source
# File pantograph/lib/pantograph/actions/git_submodule_update.rb, line 40 def self.output end
return_value()
click to toggle source
# File pantograph/lib/pantograph/actions/git_submodule_update.rb, line 43 def self.return_value end
run(params)
click to toggle source
# File pantograph/lib/pantograph/actions/git_submodule_update.rb, line 4 def self.run(params) cmd = [] cmd << 'git submodule update' cmd << '--init' if params[:init] cmd << '--recursive' if params[:recursive] cmd = cmd.join(' ') Actions.sh(cmd) end