daddy 0.4.9 → 0.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2dee14fc0e9b6abc36ad974252320a866b79496e
4
- data.tar.gz: ac69f857d7965258ba0215439f49f8130ab1e38a
3
+ metadata.gz: 4b27b05ba9e87dacad90c72d3fc28a0dc87dee44
4
+ data.tar.gz: 2889f4ddbd4ce5873b9932dedbea6b07123935cc
5
5
  SHA512:
6
- metadata.gz: b9fee8a24bf52bb8bc4a7bbaa7868784093d8eae138d03fbb7841655c6fdf0896a4cc895af00242fed7e627733b91a2576f72bc63095752a47b28e92c38d7ce3
7
- data.tar.gz: 974fcee2c899b2ca82fea96a3a158e462af847b6c801387a15f195968ab9e0b053ec2a66114d4bf8c78f3774a1cff28aa0d7218c9148ddbd7f150125fa2df8de
6
+ metadata.gz: c34e54232eecb2a77f52f623ea66b2a41806a6302a042661865cfda1285ab926bbb665e371508bf4885e3eaaf8f6ecd1febf5d4dcbbf9c4f17cf06b73a3c7f19
7
+ data.tar.gz: 8d63b428431af0340cc40eeede834e68fa204e925259f8a557bcd3d2725c02fb889ff25bd88a09c02ec17d71cd113d8d3279d38a55cee33fb68c3f155daff2b7
@@ -0,0 +1,27 @@
1
+ require 'daddy/itamae'
2
+
3
+ ENV['DAD_PHANTOMJS_VERSION'] ||= '2.1.1'
4
+ ENV['DAD_PHANTOMJS_PACKAGE'] ||= "phantomjs-#{ENV['DAD_PHANTOMJS_VERSION']}-linux-x86_64"
5
+
6
+ package 'fontconfig'
7
+
8
+ directory 'tmp'
9
+ directory 'tmp/daddy'
10
+
11
+ execute 'PhantomJSのダウンロード' do
12
+ cwd 'tmp/daddy'
13
+ command "wget https://bitbucket.org/ariya/phantomjs/downloads/#{ENV['DAD_PHANTOMJS_PACKAGE']}.tar.bz2"
14
+ not_if "test `/usr/local/bin/phantomjs -v` = #{ENV['DAD_PHANTOMJS_VERSION']}"
15
+ end
16
+
17
+ execute 'PhantomJSのインストール' do
18
+ cwd 'tmp/daddy'
19
+ command <<-EOF
20
+ rm -Rf #{ENV['DAD_PHANTOMJS_PACKAGE']}
21
+ tar jxf #{ENV['DAD_PHANTOMJS_PACKAGE']}.tar.bz2
22
+ sudo cp -f #{ENV['DAD_PHANTOMJS_PACKAGE']}/bin/phantomjs /usr/local/bin/phantomjs
23
+ sudo chown root:root /usr/local/bin/phantomjs
24
+ sudo chmod 755 /usr/local/bin/phantomjs
25
+ EOF
26
+ not_if "test `/usr/local/bin/phantomjs -v` = #{ENV['DAD_PHANTOMJS_VERSION']}"
27
+ end
data/lib/daddy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Daddy
2
- VERSION = '0.4.9'
2
+ VERSION = '0.4.10'
3
3
  end
@@ -5,16 +5,7 @@ namespace :dad do
5
5
 
6
6
  desc "PhantomJSをインストールします。"
7
7
  task :install do
8
- name = 'phantomjs-1.9.8-linux-x86_64'
9
- file = "#{name}.tar.bz2"
10
-
11
- run "wget https://bitbucket.org/ariya/phantomjs/downloads/#{file} -O tmp/#{file}" unless File.exist?("tmp/#{file}")
12
- run "rm -Rf tmp/#{name}",
13
- "cd tmp && tar jxf #{file}"
14
-
15
- run "sudo cp -f tmp/#{name}/bin/phantomjs /usr/local/bin/phantomjs",
16
- "sudo chown root:root /usr/local/bin/phantomjs",
17
- "sudo chmod 755 /usr/local/bin/phantomjs"
8
+ run_itamae 'phantomjs/install'
18
9
  end
19
10
 
20
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-25 00:00:00.000000000 Z
11
+ date: 2016-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -234,6 +234,7 @@ files:
234
234
  - app/assets/stylesheets/ympicker.css.scss
235
235
  - bin/dad
236
236
  - itamae/cookbooks/jenkins/install.rb
237
+ - itamae/cookbooks/phantomjs/install.rb
237
238
  - itamae/templates/etc/sysconfig/jenkins.erb
238
239
  - lib/active_support/cache/null_store.rb
239
240
  - lib/capistrano/daddy.rb