kerby 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: ecfa58680c5ba9f08002748db2eae51f7005b7b163a183046cb0a62120f9eefb
4
- data.tar.gz: d6fb0c0d984309cd97c17f8c1c94552c207192717202faeb02815c9dbc0b4add
3
+ metadata.gz: f4c2c7a1655e3250ae392cc1325b95e8feb2fe96b39e68850d9fe879ba0fa4ab
4
+ data.tar.gz: 4d4e678a0fee29aa20968de8a0d0cb6e1ab36f6f520a8cc94a599a1cdfb2e7b5
5
5
  SHA512:
6
- metadata.gz: 39ac9e712768a30ffecf291da2df6afe41b624e03fd2627af16c6c79c44cb5b535ca59855eee50539ce0ace7a5a939369c191bc2ae44c07832473514aa49bca0
7
- data.tar.gz: 3ca828f0129fb5f4ef3123072098bcd415d60baba7273d83b258d434053229a45817cd0fee2423b66c2061cb20a9bc8b24e9ba6d0acef8479ae2b46ef4cdcf34
6
+ metadata.gz: a0b69e9d75d90a93ba4f34c0a1a72137354ca8fc188627611134f43e2adc2229f5e37a9e82725cb96bef1e7a3e3e53b20b2391d3ad9963d6ec6b325080e8194e
7
+ data.tar.gz: 595e6446a9a120b63cde5345e64e240a9df5820fed0c30ecd1dc93197d5713a576ea86fbe28d2b8f72f6e4d3cac1755258fe4b478ffa956d21c1205042f774d3
data/README.md CHANGED
@@ -30,7 +30,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
30
30
 
31
31
  ## Contributing
32
32
 
33
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/kerby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/kerby/blob/master/CODE_OF_CONDUCT.md).
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/kerby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/maedadev/kerby/blob/master/CODE_OF_CONDUCT.md).
34
34
 
35
35
 
36
36
  ## License
@@ -39,4 +39,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
39
39
 
40
40
  ## Code of Conduct
41
41
 
42
- Everyone interacting in the Kerby project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/kerby/blob/master/CODE_OF_CONDUCT.md).
42
+ Everyone interacting in the Kerby project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/maedadev/kerby/blob/master/CODE_OF_CONDUCT.md).
data/lib/kerby/cli.rb CHANGED
@@ -81,5 +81,13 @@ module Kerby
81
81
  k8s_node_sub(hash[keys[0]] || {}, keys[1,keys.size-1].join('.'), prompt)
82
82
  end
83
83
  end
84
+
85
+ # k8s_include with YAML indent
86
+ def k8s_config_map(path)
87
+ "|\n" +
88
+ ERB.new(File.read(Pathname(@_curr_file).dirname + path)).result(binding).split("\n").map do |line|
89
+ " " + line + "\n"
90
+ end.join('')
91
+ end
84
92
  end
85
93
  end
data/lib/kerby/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kerby
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kerby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ido
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-07 00:00:00.000000000 Z
11
+ date: 2020-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json