Sha256: 1e8ec086aa6d65ad2808e3aa68a0e2161a2b327a0ae89db9ad9ccf9a647394ce

Contents?: true

Size: 1.01 KB

Versions: 4

Compression:

Stored size: 1.01 KB

Contents

module Context
  module RubyDeployerHelper
    def ruby_build(context)
      git_build(context)
      Dir.chdir context.context_folder
      puts "Working in folder #{Dir.pwd}\nAnd context #{context.context_name} is created"
      rake ['build']
    end

    def ruby_release(context)
      Dir.chdir context.context_folder
      # gem ["push #{context.context_name}-#{GVB.version}.gem"]
      rake ['release']
    end

    def ruby_install(context)
      Dir.chdir context.context_folder
      gem ['install', context.context_name]
    end

    def clean_folder(context, folder)
      clean_folder = get_context_folder(context, folder)
      puts "Clean folder #{clean_folder}"
      FileUtils.remove_dir(clean_folder) if Dir.exist?(clean_folder)
    end

    def ruby_clean(context)
      clean_folder(context, 'pkg')
    end

    def ruby_remove_gem(context)
      clean_folder(context, 'pkg')
    end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
deploy-context-0.6.0.1.ge54bf72.1.g3590b37 lib/deploy-context/deploy/ruby.rb
deploy-context-0.6.0.1.ge54bf72 lib/deploy-context/deploy/ruby.rb
deploy-context-0.5.1.1.g528de70.1.g25eba10 lib/deploy-context/deploy/ruby.rb
deploy-context-0.5.1.1.g528de70 lib/deploy-context/deploy/ruby.rb