Sha256: ac9866d0112eb3d5b5e458350bee421f14d0ad7c3db1d01a0f5493a2b229bf64
Contents?: true
Size: 749 Bytes
Versions: 5
Compression:
Stored size: 749 Bytes
Contents
require "bundler/gem_tasks" require 'net/ssh' require 'net/scp' require 'fileutils' task 'build:gem' do host = '148.251.43.54' user = 'deployer' Net::SSH.start(host, user, port: 60000) do |ssh| base_dir = "/home/deployer/temp/coalla-gems" project_name = 'coalla-cms' git_url = "git@bitbucket.org:coalla/#{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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
coalla-cms-0.7.0.0 | Rakefile |
coalla-cms-0.5.2.4 | Rakefile |
coalla-cms-0.6.1.1 | Rakefile |
coalla-cms-0.6.0.9 | Rakefile |
coalla-cms-0.5.1.8 | Rakefile |