daddy 0.4.9 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/itamae/cookbooks/phantomjs/install.rb +27 -0
- data/lib/daddy/version.rb +1 -1
- data/lib/tasks/phantomjs.rake +1 -10
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b27b05ba9e87dacad90c72d3fc28a0dc87dee44
|
4
|
+
data.tar.gz: 2889f4ddbd4ce5873b9932dedbea6b07123935cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/tasks/phantomjs.rake
CHANGED
@@ -5,16 +5,7 @@ namespace :dad do
|
|
5
5
|
|
6
6
|
desc "PhantomJSをインストールします。"
|
7
7
|
task :install do
|
8
|
-
|
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.
|
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-
|
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
|