module Nucleon::Mixin::Action::Push
Public Instance Methods
push(project, remote = :edit)
click to toggle source
# File lib/core/mixin/action/push.rb 35 def push(project, remote = :edit) 36 success = true 37 38 if project && settings[:push] 39 success = project.push(settings[:remote], extended_config(:push, { 40 :revision => settings[:revision], 41 :propogate => settings[:propogate_push], 42 :no_pull => ! settings[:pull] 43 })) 44 end 45 success 46 end
push_config(optional = true)
click to toggle source
# File lib/core/mixin/action/push.rb 10 def push_config(optional = true) 11 12 if optional 13 register_bool :push, false, 'nucleon.core.mixin.action.push.options.push' 14 else 15 settings[:push] = true 16 end 17 18 register_bool :pull, true, 'nucleon.core.mixin.action.push.options.pull' 19 20 register_bool :propogate_push, false, 'nucleon.core.mixin.action.push.options.propogate_push' 21 22 register_str :remote, :edit, 'nucleon.core.mixin.action.push.options.remote' 23 register_str :revision, :master, 'nucleon.core.mixin.action.push.options.revision' 24 end
push_ignore()
click to toggle source
# File lib/core/mixin/action/push.rb 28 def push_ignore 29 [ :push, :pull, :propogate_push, :remote, :revision ] 30 end