Sha256: a6776f079d45db17ddf5c1c3eb778bdac6e7a40a6d99c730a8c3e58582ca59b1

Contents?: true

Size: 916 Bytes

Versions: 8

Compression:

Stored size: 916 Bytes

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
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
deploy-context-0.8.0.2.ged8af61 lib/deploy-context/deploy/ruby.rb
deploy-context-0.8.0.1.g477974d lib/deploy-context/deploy/ruby.rb
deploy-context-0.7.4 lib/deploy-context/deploy/ruby.rb
deploy-context-0.7.3 lib/deploy-context/deploy/ruby.rb
deploy-context-0.7.2 lib/deploy-context/deploy/ruby.rb
deploy-context-0.7.1 lib/deploy-context/deploy/ruby.rb
deploy-context-0.6.4 lib/deploy-context/deploy/ruby.rb
deploy-context-0.6.3 lib/deploy-context/deploy/ruby.rb