itamae-plugin-recipe-kzyty_redis 0.1.0 → 0.1.1
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 +4 -4
- data/.gitignore +1 -0
- data/Gemfile +1 -1
- data/LICENSE +0 -3
- data/README.md +12 -13
- data/{itamae-plugin-recipe-redis.gemspec → itamae-plugin-recipe-kzyty_redis.gemspec} +3 -3
- data/lib/itamae/plugin/recipe/{redis.rb → kzyty_redis.rb} +2 -2
- data/lib/itamae/plugin/recipe/{redis → kzyty_redis}/config.rb +2 -2
- data/lib/itamae/plugin/recipe/{redis → kzyty_redis}/enable.rb +0 -0
- data/lib/itamae/plugin/recipe/{redis → kzyty_redis}/package.rb +2 -2
- data/lib/itamae/plugin/recipe/{redis → kzyty_redis}/version.rb +2 -2
- metadata +9 -10
- data/.travis.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c31d2252007c0a3167bb32f0acaf90eecca5866
|
4
|
+
data.tar.gz: 9d2a3156e09c1f70409ee668d3b421106ab190b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cbfc6c3bd1bfa8fb16e0f3701b7e5e02048fdb1e81f219b21b689076dc3f0e5919d7b2395dd98337a879f2581d494a96c1f4114c41ec17a6dfc5928756cbd7c
|
7
|
+
data.tar.gz: c089e8fbd71d8e704f6cfc10eadb9444ac533d4c7913d1e6b30b6637d09f7cf9a7ae61e94b8a908ebcee53be4d3b76115fce73f48b3021cc4435789d7614400c
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/LICENSE
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2015 Leonis & Co.
|
4
|
-
|
5
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
4
|
of this software and associated documentation files (the "Software"), to deal
|
7
5
|
in the Software without restriction, including without limitation the rights
|
@@ -19,4 +17,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
17
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
18
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
19
|
SOFTWARE.
|
22
|
-
|
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
# Itamae::Plugin::Recipe::
|
1
|
+
# Itamae::Plugin::Recipe::KzytyRedis
|
2
2
|
|
3
3
|
[Itamae](https://github.com/itamae-kitchen/itamae) plugin to install redis.
|
4
4
|
|
5
5
|
## Forked for temporarily gem
|
6
|
+
|
6
7
|
https://github.com/leonis/itamae-plugin-recipe-redis/issues/1
|
7
8
|
|
8
9
|
## Installation
|
@@ -10,7 +11,7 @@ https://github.com/leonis/itamae-plugin-recipe-redis/issues/1
|
|
10
11
|
Add this line to your application's Gemfile:
|
11
12
|
|
12
13
|
```ruby
|
13
|
-
gem 'itamae-plugin-recipe-
|
14
|
+
gem 'itamae-plugin-recipe-kzyty_redis'
|
14
15
|
```
|
15
16
|
|
16
17
|
And then execute:
|
@@ -19,7 +20,7 @@ And then execute:
|
|
19
20
|
|
20
21
|
Or install it yourself as:
|
21
22
|
|
22
|
-
$ gem install itamae-plugin-recipe-
|
23
|
+
$ gem install itamae-plugin-recipe-kzyty_redis
|
23
24
|
|
24
25
|
## Usage
|
25
26
|
|
@@ -31,7 +32,7 @@ Install redis package.
|
|
31
32
|
|
32
33
|
```
|
33
34
|
# your recipe
|
34
|
-
include_recipe '
|
35
|
+
include_recipe 'kzyty_redis::package'
|
35
36
|
```
|
36
37
|
|
37
38
|
#### config recipe
|
@@ -40,8 +41,8 @@ Configure redis.
|
|
40
41
|
|
41
42
|
```
|
42
43
|
# your recipe
|
43
|
-
include_recipe '
|
44
|
-
include_recipe '
|
44
|
+
include_recipe 'kzyty_redis::package'
|
45
|
+
include_recipe 'kzyty_redis::config'
|
45
46
|
```
|
46
47
|
|
47
48
|
NOTE: `config` recipe depend on `package` recipe.
|
@@ -49,13 +50,13 @@ NOTE: `config` recipe depend on `package` recipe.
|
|
49
50
|
##### Node
|
50
51
|
|
51
52
|
```
|
52
|
-
|
53
|
+
kzyty_redis:
|
53
54
|
port: 6379
|
54
55
|
```
|
55
56
|
|
56
57
|
| name | description |
|
57
58
|
|:-----|:------------|
|
58
|
-
|
|
59
|
+
| kzyty_redis.port | port number of redis |
|
59
60
|
|
60
61
|
#### enable recipe
|
61
62
|
|
@@ -63,15 +64,15 @@ Enable redis service.
|
|
63
64
|
|
64
65
|
```
|
65
66
|
# your recipe
|
66
|
-
include_recipe '
|
67
|
-
include_recipe '
|
67
|
+
include_recipe 'kzyty_redis::package'
|
68
|
+
include_recipe 'kzyty_redis::enable'
|
68
69
|
```
|
69
70
|
|
70
71
|
NOTE: `enable` recipe depend on `package` recipe.
|
71
72
|
|
72
73
|
## Contributing
|
73
74
|
|
74
|
-
1. Fork it ( https://github.com/[my-github-username]/itamae-plugin-recipe-
|
75
|
+
1. Fork it ( https://github.com/[my-github-username]/itamae-plugin-recipe-kzyty_redis/fork )
|
75
76
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
76
77
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
77
78
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -79,6 +80,4 @@ NOTE: `enable` recipe depend on `package` recipe.
|
|
79
80
|
|
80
81
|
# License
|
81
82
|
|
82
|
-
Copyright 2015 Leonis & Co.
|
83
|
-
|
84
83
|
MIT License
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'itamae/plugin/recipe/
|
4
|
+
require 'itamae/plugin/recipe/kzyty_redis/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'itamae-plugin-recipe-kzyty_redis'
|
8
|
-
spec.version = Itamae::Plugin::Recipe::
|
8
|
+
spec.version = Itamae::Plugin::Recipe::KzytyRedis::VERSION
|
9
9
|
spec.authors = ['Taiyo Kojima']
|
10
10
|
spec.email = ['kozyty@gmail.com']
|
11
11
|
spec.licenses = ['MIT']
|
@@ -20,5 +20,5 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_development_dependency 'bundler', '~> 1.9'
|
22
22
|
spec.add_development_dependency 'rake', '~> 10.0'
|
23
|
-
spec.add_runtime_dependency 'itamae', '~> 1.
|
23
|
+
spec.add_runtime_dependency 'itamae', '~> 1.3'
|
24
24
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Configure redis
|
2
2
|
|
3
3
|
node.reverse_merge!(
|
4
|
-
|
4
|
+
kzyty_redis: {
|
5
5
|
port: 6379
|
6
6
|
}
|
7
7
|
)
|
8
8
|
|
9
|
-
port = node[:
|
9
|
+
port = node[:kzyty_redis][:port]
|
10
10
|
execute 'configure redis port ' do
|
11
11
|
command %(sed -i -e 's/^port [0-9]\\{1,\\}$/port #{port}/g' /etc/redis.conf)
|
12
12
|
not_if %(grep -e '^port #{port}$' /etc/redis.conf)
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-plugin-recipe-kzyty_redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taiyo Kojima
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.3'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
54
|
+
version: '1.3'
|
55
55
|
description: Itamae plugin to install redis by package.
|
56
56
|
email:
|
57
57
|
- kozyty@gmail.com
|
@@ -60,19 +60,18 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
|
-
- ".travis.yml"
|
64
63
|
- Gemfile
|
65
64
|
- LICENSE
|
66
65
|
- README.md
|
67
66
|
- Rakefile
|
68
67
|
- bin/console
|
69
68
|
- bin/setup
|
70
|
-
- itamae-plugin-recipe-
|
71
|
-
- lib/itamae/plugin/recipe/
|
72
|
-
- lib/itamae/plugin/recipe/
|
73
|
-
- lib/itamae/plugin/recipe/
|
74
|
-
- lib/itamae/plugin/recipe/
|
75
|
-
- lib/itamae/plugin/recipe/
|
69
|
+
- itamae-plugin-recipe-kzyty_redis.gemspec
|
70
|
+
- lib/itamae/plugin/recipe/kzyty_redis.rb
|
71
|
+
- lib/itamae/plugin/recipe/kzyty_redis/config.rb
|
72
|
+
- lib/itamae/plugin/recipe/kzyty_redis/enable.rb
|
73
|
+
- lib/itamae/plugin/recipe/kzyty_redis/package.rb
|
74
|
+
- lib/itamae/plugin/recipe/kzyty_redis/version.rb
|
76
75
|
homepage: https://github.com/kozyty/itamae-plugin-recipe-kzyty_redis
|
77
76
|
licenses:
|
78
77
|
- MIT
|
data/.travis.yml
DELETED