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

Version Path
daddy-0.5.10 lib/tasks/jenkins.rake
daddy-0.5.9 lib/tasks/jenkins.rake
daddy-0.5.8 lib/tasks/jenkins.rake
daddy-0.5.7 lib/tasks/jenkins.rake
daddy-0.5.6 lib/tasks/jenkins.rake
daddy-0.5.5 lib/tasks/jenkins.rake
daddy-0.5.4 lib/tasks/jenkins.rake
daddy-0.5.3 lib/tasks/jenkins.rake
daddy-0.5.2 lib/tasks/jenkins.rake
daddy-0.5.1 lib/tasks/jenkins.rake
daddy-0.5.0 lib/tasks/jenkins.rake
daddy-0.4.10 lib/tasks/jenkins.rake
daddy-0.4.9 lib/tasks/jenkins.rake