itamae-plugin-recipe-h2o 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8c8274b54449b825bac6acba24578c6bdba85e2
4
- data.tar.gz: b3d927f4362df0f3660ee64683f71479b27a264b
3
+ metadata.gz: 4046a0864650fd39627f5efc98c65b0fc5db6134
4
+ data.tar.gz: 9c5081f7fb1febf348882375a05546b4050a0410
5
5
  SHA512:
6
- metadata.gz: e34be213ccdf30b31642a71be9260f6ce20496aa2419443fc1ec08a8f2cbb0102d866d6999ffce4d0cb4950296a68375ed5c041987c600d753f9b3efb9e6380e
7
- data.tar.gz: a800c5d7ee2463298c5328208f3fa835fe816ceb871bf0ae978b5893dbd02149940ac886443d4db5938c78a77ec1d54dd37ef3dea0f3f463cf5c042dea441c42
6
+ metadata.gz: 12cb6ff50bd20f25eed90acdce8d3f74d349a83483666c4be7a23e31919e5622afaf842a53fe456f87397949e9a02687540b7dc4bd5b4a1cb344ab41bc66ccf3
7
+ data.tar.gz: db0666c79ed6873c44226cb6737a5eb91393f7b5ea1a3c577b6ba9f5fbfe40779a53bfcc6db769d28df7052daf0629d64c80b1c0b3ed07fd6cb01d246178220e
data/README.md CHANGED
@@ -42,11 +42,11 @@ h2o:
42
42
  # H2O install dir, optional (default: /usr/local)
43
43
  h2o_root: "/path/to/h2o"
44
44
 
45
- # `on` if H2O use bundled LibreSSL.
46
- bundled_ssl: on
45
+ # `true` if H2O use bundled LibreSSL.
46
+ bundled_ssl: true
47
47
 
48
- # `on` if H2O use mruby.
49
- mruby: on
48
+ # `true` if H2O use mruby.
49
+ mruby: true
50
50
  ```
51
51
 
52
52
  ## License
@@ -6,37 +6,43 @@ execute 'Download a H2O' do
6
6
  command "wget https://github.com/h2o/h2o/archive/v#{version}.tar.gz"
7
7
  cwd "/tmp"
8
8
  not_if "test -e /tmp/v#{version}.tar.gz"
9
+ not_if 'type h2o'
9
10
  end
10
11
 
11
12
  execute 'Unzip Tar file' do
12
13
  command "tar xzvf v#{version}.tar.gz"
13
14
  cwd "/tmp"
14
15
  not_if "test -e /tmp/h2o-#{version}"
16
+ not_if 'type h2o'
15
17
  end
16
18
 
17
19
  execute 'Cmake a h2o' do
18
20
  options = []
19
- if node[:h2o][:bundled_ssl]
21
+ case node[:h2o][:bundled_ssl]
22
+ when true
20
23
  options << ' -DWITH_BUNDLED_SSL=on'
21
- else
24
+ when false
22
25
  options << ' -DWITH_BUNDLED_SSL=off'
26
+ else
27
+ # Default: off if OpenSSL version >= 1.0.2 is found, on if otherwise.
23
28
  end
24
- # Default: off if OpenSSL version >= 1.0.2 is found, on if otherwise.
25
29
 
26
- if node[:h2o][:mruby]
30
+ case node[:h2o][:mruby]
31
+ when true
27
32
  options << ' -DWITH_MRUBY=on'
28
- else
33
+ when false
29
34
  options << ' -DWITH_MRUBY=off'
35
+ else
36
+ # Default: on if bison, ruby and development files is found, off if otherwise.
30
37
  end
31
- # Default: on if bison, ruby and development files is found, off if otherwise.
32
38
 
33
39
  install_prefix ||= node[:h2o][:install_prefix]
34
40
  options << " -DCMAKE_INSTALL_PREFIX=#{install_prefix}" if install_prefix
35
41
 
36
-
37
42
  command "cmake#{options.join} ."
38
43
  cwd "/tmp/h2o-#{version}"
39
44
  only_if "test -e /tmp/h2o-#{version}"
45
+ not_if 'type h2o'
40
46
  end
41
47
 
42
48
  execute 'Make a h2o' do
@@ -47,10 +53,12 @@ execute 'Make a h2o' do
47
53
  end
48
54
  cwd "/tmp/h2o-#{version}"
49
55
  only_if "test -e /tmp/h2o-#{version}"
56
+ not_if 'type h2o'
50
57
  end
51
58
 
52
59
  execute 'Install a h2o' do
53
60
  command 'sudo make install'
54
61
  cwd "/tmp/h2o-#{version}"
55
62
  only_if "test -e /tmp/h2o-#{version}"
63
+ not_if 'type h2o'
56
64
  end
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module H2o
5
- VERSION = "0.0.2"
5
+ VERSION = "0.0.3"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-h2o
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Sugimoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-11 00:00:00.000000000 Z
11
+ date: 2016-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -60,9 +60,7 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
- - ".rspec"
64
63
  - ".travis.yml"
65
- - CODE_OF_CONDUCT.md
66
64
  - Gemfile
67
65
  - LICENSE.txt
68
66
  - README.md
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
@@ -1,49 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, and in the interest of
4
- fostering an open and welcoming community, we pledge to respect all people who
5
- contribute through reporting issues, posting feature requests, updating
6
- documentation, submitting pull requests or patches, and other activities.
7
-
8
- We are committed to making participation in this project a harassment-free
9
- experience for everyone, regardless of level of experience, gender, gender
10
- identity and expression, sexual orientation, disability, personal appearance,
11
- body size, race, ethnicity, age, religion, or nationality.
12
-
13
- Examples of unacceptable behavior by participants include:
14
-
15
- * The use of sexualized language or imagery
16
- * Personal attacks
17
- * Trolling or insulting/derogatory comments
18
- * Public or private harassment
19
- * Publishing other's private information, such as physical or electronic
20
- addresses, without explicit permission
21
- * Other unethical or unprofessional conduct
22
-
23
- Project maintainers have the right and responsibility to remove, edit, or
24
- reject comments, commits, code, wiki edits, issues, and other contributions
25
- that are not aligned to this Code of Conduct, or to ban temporarily or
26
- permanently any contributor for other behaviors that they deem inappropriate,
27
- threatening, offensive, or harmful.
28
-
29
- By adopting this Code of Conduct, project maintainers commit themselves to
30
- fairly and consistently applying these principles to every aspect of managing
31
- this project. Project maintainers who do not follow or enforce the Code of
32
- Conduct may be permanently removed from the project team.
33
-
34
- This code of conduct applies both within project spaces and in public spaces
35
- when an individual is representing the project or its community.
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
- reported by contacting a project maintainer at sugryo1109@gmail.com. All
39
- complaints will be reviewed and investigated and will result in a response that
40
- is deemed necessary and appropriate to the circumstances. Maintainers are
41
- obligated to maintain confidentiality with regard to the reporter of an
42
- incident.
43
-
44
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
- version 1.3.0, available at
46
- [http://contributor-covenant.org/version/1/3/0/][version]
47
-
48
- [homepage]: http://contributor-covenant.org
49
- [version]: http://contributor-covenant.org/version/1/3/0/