class Devkitkat::Service::PredefinedCommand::Pull
Constants
- DEFAULT_REPO_REF
Public Instance Methods
available?()
click to toggle source
# File lib/devkitkat/service/predefined_command/pull.rb, line 19 def available? service.repo_defined? end
machine_driver()
click to toggle source
# File lib/devkitkat/service/predefined_command/pull.rb, line 23 def machine_driver 'none' end
repo_ref()
click to toggle source
# File lib/devkitkat/service/predefined_command/pull.rb, line 15 def repo_ref service.repo_ref || DEFAULT_REPO_REF end
to_script()
click to toggle source
# File lib/devkitkat/service/predefined_command/pull.rb, line 7 def to_script <<~EOS cd #{service.src_dir} git checkout #{repo_ref} git pull origin #{repo_ref} EOS end