Sha256: df2f645bae4a82184665797c43ef08c1155e2a0ac35dfdc5350ea3cb3e46f3f1
Contents?: true
Size: 797 Bytes
Versions: 1
Compression:
Stored size: 797 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
coalla-cms-0.5.1.9 | Rakefile |