Sha256: 8f6a1b4c889ea81dc6e00191db4e2ad15e49617fde8121b7eb602fe1b7a1fde7

Contents?: true

Size: 724 Bytes

Versions: 14

Compression:

Stored size: 724 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
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
deploy-context-0.8.0.2.ged8af61 lib/deploy-context/deploy/git.rb
deploy-context-0.8.0.1.g477974d lib/deploy-context/deploy/git.rb
deploy-context-0.7.4 lib/deploy-context/deploy/git.rb
deploy-context-0.7.3 lib/deploy-context/deploy/git.rb
deploy-context-0.7.2 lib/deploy-context/deploy/git.rb
deploy-context-0.7.1 lib/deploy-context/deploy/git.rb
deploy-context-0.6.4 lib/deploy-context/deploy/git.rb
deploy-context-0.6.3 lib/deploy-context/deploy/git.rb
deploy-context-0.6.2 lib/deploy-context/deploy/git.rb
deploy-context-0.6.1.2.gfb82de1 lib/deploy-context/deploy/git.rb
deploy-context-0.6.1.1.g7f112bd lib/deploy-context/deploy/git.rb
deploy-context-0.6.1 lib/deploy-context/deploy/git.rb
deploy-context-0.6.0.1.ge54bf72.1.g3590b37.2.gde4b626 lib/deploy-context/deploy/git.rb
deploy-context-0.6.0.1.ge54bf72.1.g3590b37.1.g08f003f lib/deploy-context/deploy/git.rb