Sha256: 4e63144bb9665eaa4a57215db766baab6e2dfbe9358d21109dc985c51dadfb9e
Contents?: true
Size: 743 Bytes
Versions: 2
Compression:
Stored size: 743 Bytes
Contents
require "bundler/gem_tasks" require 'net/ssh' require 'net/scp' require 'fileutils' task 'build:gem' do host = '5.9.118.111' user = 'deployer' Net::SSH.start(host, user, port: 60000) do |ssh| base_dir = "/home/deployer/temp/coalla-gems" project_name = 'coalla-cms' git_url = "http://git.coalla.ru/#{project_name}.git" gems_dir = '/var/www/virtual-hosts/gems.coalla.ru' output = ssh.exec! <<-SH mkdir --parents #{base_dir} cd #{base_dir} git clone #{git_url} cd #{project_name} source /etc/profile rvm 1.9.3 gem build coalla-cms.gemspec cp -rf *.gem #{gems_dir}/gems cd #{gems_dir} gem generate_index rm -R #{base_dir} SH puts output end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coalla-cms-0.4.2.0 | Rakefile |
coalla-cms-0.4.4.3 | Rakefile |