Sha256: 676aa13115c8d8cec613cf7715636f05e86d155cb9a9cf3bb9ede241da55a434

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

require 'fileutils'
require 'git-version-bump'

require_relative 'deploy-context/deploy'
require_relative 'deploy-context/deploy/ruby'
require_relative 'deploy-context/deploy/git'

module Context
  class DeployContext < Deploy
    include DeployHelper
    include GitDeployerHelper
    include RubyDeployerHelper

    def initialize(deploycontext_folder)
      super('deploy-context', deploycontext_folder)
    end

    def cycle
      clean
      patch_bump
      build
      commit
      release
      install
      minor_bump
    end

    def build
      git_build(self)
      check_folder get_context_folder(self, 'build')
      check_folder get_context_folder(self, 'contexts')
      ruby_build(self)
    end

    def commit
      git_commit(self)
    end

    def release
      ruby_release(self)
      git_release(self)
    end

    def install
      ruby_install(self)
    end

    def clean
      clean_folder(self, 'contexts')
      ruby_clean(self)
    end

    def patch_bump
      ruby_bump(self, 'patch')
    end

    def minor_bump
      ruby_bump(self, 'minor')
    end

    def major_bump
      ruby_bump(self, 'major')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deploy-context-0.4.0.1.g0f0d133 lib/deploy-context.rb
deploy-context-0.3.0.1.g8904331 lib/deploy-context.rb
deploy-context-0.2.0.1.g91ccda3 lib/deploy-context.rb