Sha256: 2eadb0daf551aa0f2d8eefd125c2d041e140b099c880438ba55a0cb87bfe06dd

Contents?: true

Size: 821 Bytes

Versions: 16

Compression:

Stored size: 821 Bytes

Contents

module Context
  module GitDeployerHelper
    def git_build(context)
      Dir.chdir File.dirname(context.context_folder)
      puts "Building ruby from folder #{context.context_folder}"
      git ["clone git@github.com:JimboDragonGit/#{context.context_name}.git"] unless ::Dir.exist?(context.context_folder)
    end

    def git_commit(context)
      Dir.chdir context.context_folder
      git ['add .']
      git ["commit -m 'Create #{context.context_name} automatic commit'"]
    end

    def git_release(context)
      Dir.chdir context.context_folder
      git ['push', '--follow-tags']
    end

    def git_bump(context, level)
      Dir.chdir context.context_folder
      git ['version-bump', level]
    end

    def patch_reset(context)
      git_bump(context, 'minor')
      git_commit(context)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
deploy-context-0.11.28 lib/deploy-context/deploy/git.rb
deploy-context-0.11.27 lib/deploy-context/deploy/git.rb
deploy-context-0.11.26 lib/deploy-context/deploy/git.rb
deploy-context-0.11.25 lib/deploy-context/deploy/git.rb
deploy-context-0.11.23 lib/deploy-context/deploy/git.rb
deploy-context-0.11.22 lib/deploy-context/deploy/git.rb
deploy-context-0.11.21 lib/deploy-context/deploy/git.rb
deploy-context-0.11.4 lib/deploy-context/deploy/git.rb
deploy-context-0.11.3 lib/deploy-context/deploy/git.rb
deploy-context-0.11.2 lib/deploy-context/deploy/git.rb
deploy-context-0.11.1 lib/deploy-context/deploy/git.rb
deploy-context-0.11.0.2.geb201f1 lib/deploy-context/deploy/git.rb
deploy-context-0.10.1 lib/deploy-context/deploy/git.rb
deploy-context-0.9.3 lib/deploy-context/deploy/git.rb
deploy-context-0.9.2 lib/deploy-context/deploy/git.rb
deploy-context-0.8.1 lib/deploy-context/deploy/git.rb