Sha256: 724759ab1f175ddb38565fa4b08ed9bc253b0615c8eb1ec14643b447116243b3
Contents?: true
Size: 742 Bytes
Versions: 13
Compression:
Stored size: 742 Bytes
Contents
require_relative 'task_helper' namespace :dad do namespace :jenkins do desc 'Jenkinsをインストールします。' task :install do run_itamae 'jenkins/install' end namespace :nginx do desc 'Nginxの設定を行います。' task :config do @server_name = ask('server_name', :required => true) @ssl_certificate = ask('ssl_certificate') @ssl_certificate_key = ask('ssl_certificate_key') FileUtils.mkdir_p 'tmp' template = File.join(File.dirname(__FILE__), 'jenkins', 'nginx.conf.erb') render template, :to => 'tmp/jenkins_nginx.conf' run "sudo cp -f tmp/jenkins_nginx.conf /etc/nginx/conf.d/servers/jenkins.conf" end end end end
Version data entries
13 entries across 13 versions & 1 rubygems