itamae-plugin-recipe-kzyty_redis 0.1.0 → 0.1.1

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: 57e062b3766027ff773d7cb53ae4a912484fd159
4
- data.tar.gz: 130507fd3c7d4456e53752caa5abf07d96576a82
3
+ metadata.gz: 9c31d2252007c0a3167bb32f0acaf90eecca5866
4
+ data.tar.gz: 9d2a3156e09c1f70409ee668d3b421106ab190b8
5
5
  SHA512:
6
- metadata.gz: f75f991e37328e2485e77c8fff4d67fac1cef554eedee0b14fc0b9e9359591fb13225e959d8f972ac2f30b977734c67bc2acf5054e5f27664beb82f1af851d11
7
- data.tar.gz: 3811414b05ce7ad12f9fe669a574b6a37f7e99e8995d6cd43f90b2bfac1df533a5fcfea194ac0beaf2ca34e63f5af716e7272f1a00a5bd35972bb3276678ea6e
6
+ metadata.gz: 5cbfc6c3bd1bfa8fb16e0f3701b7e5e02048fdb1e81f219b21b689076dc3f0e5919d7b2395dd98337a879f2581d494a96c1f4114c41ec17a6dfc5928756cbd7c
7
+ data.tar.gz: c089e8fbd71d8e704f6cfc10eadb9444ac533d4c7913d1e6b30b6637d09f7cf9a7ae61e94b8a908ebcee53be4d3b76115fce73f48b3021cc4435789d7614400c
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /vendor/
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in itamae-plugin-recipe-redis.gemspec
3
+ # Specify your gem's dependencies in itamae-plugin-recipe-kzyty_redis.gemspec
4
4
  gemspec
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::Redis
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-redis'
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-redis
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 'redis::package'
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 'redis::package'
44
- include_recipe 'redis::config'
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
- redis:
53
+ kzyty_redis:
53
54
  port: 6379
54
55
  ```
55
56
 
56
57
  | name | description |
57
58
  |:-----|:------------|
58
- | redis.port | port number of redis |
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 'redis::package'
67
- include_recipe 'redis::enable'
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-redis/fork )
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/redis/version'
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::Redis::VERSION
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.2'
23
+ spec.add_runtime_dependency 'itamae', '~> 1.3'
24
24
  end
@@ -1,9 +1,9 @@
1
- require "itamae/plugin/recipe/redis/version"
1
+ require "itamae/plugin/recipe/kzyty_redis/version"
2
2
 
3
3
  module Itamae
4
4
  module Plugin
5
5
  module Recipe
6
- module Redis
6
+ module KzytyRedis
7
7
  # Your code goes here...
8
8
  end
9
9
  end
@@ -1,12 +1,12 @@
1
1
  # Configure redis
2
2
 
3
3
  node.reverse_merge!(
4
- redis: {
4
+ kzyty_redis: {
5
5
  port: 6379
6
6
  }
7
7
  )
8
8
 
9
- port = node[:redis][:port]
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)
@@ -1,8 +1,8 @@
1
1
  # Install redis by package.
2
2
 
3
3
  redis_version = \
4
- if !node[:redis].nil? && !node[:redis][:version].nil?
5
- node[:redis][:version]
4
+ if !node[:kzyty_redis].nil? && !node[:kzyty_redis][:version].nil?
5
+ node[:kzyty_redis][:version]
6
6
  else
7
7
  nil
8
8
  end
@@ -1,8 +1,8 @@
1
1
  module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
- module Redis
5
- VERSION = "0.1.0"
4
+ module KzytyRedis
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
8
8
  end
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.0
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.2'
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.2'
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-redis.gemspec
71
- - lib/itamae/plugin/recipe/redis.rb
72
- - lib/itamae/plugin/recipe/redis/config.rb
73
- - lib/itamae/plugin/recipe/redis/enable.rb
74
- - lib/itamae/plugin/recipe/redis/package.rb
75
- - lib/itamae/plugin/recipe/redis/version.rb
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
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1.2