itamae-node_env 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a97b8dc6a79ea7ef83c1c132f0172710c68ba024
4
- data.tar.gz: d80bf7274947a281a316951693c4be2d432883e7
3
+ metadata.gz: 82df28106ba9614a71e099ffeed025101449d52f
4
+ data.tar.gz: 0469202e86fb4129edd408e3a657aba37bafc181
5
5
  SHA512:
6
- metadata.gz: 759531337c883c26228982b477255bcecb9f721d1577b368d8d11ce6a377ddac886b39f721340e832a3212916ffc73e0fcd39b69f5f8feb2ee037304d3c584df
7
- data.tar.gz: aa12dd580a859da925eac9e4e5cc13d5973719dad5d2e7fad85dc1d861e91fc2340fe204e497cba6778adc9d6ea17c6e5e1947a2d59daeb90a54c3bd13faf741
6
+ metadata.gz: 03ee0db21ba61a4f0171662884e768a09607e1fdd24ee8d1f35e4ac7a5904f65f230f54647762c7b97f2f62d69346c5fcefa6b490a63460304ce923b1ad18104
7
+ data.tar.gz: 5702387c3ca325044190bafdf5070920bb1f995f6cf39383e40841ad8577835f88d64a74383bcec819cd3b2b8f2d1ee1ac5bcbc316f2fb23a5dff47aadbfbfe0
data/README.md CHANGED
@@ -43,7 +43,7 @@ node.json:
43
43
  Execute itamae:
44
44
 
45
45
  ```bash
46
- IR_SECRET_KEY="$(cat ./id_rsa_for_someone)"
46
+ export IR_SECRET_KEY="$(cat ./id_rsa_for_someone)"
47
47
  bundle exec itamae ssh -h target_host --node-json node.json recipe.rb
48
48
  ```
49
49
 
@@ -5,7 +5,7 @@ module Itamae
5
5
  module NodeEnv
6
6
  def [](key)
7
7
  val = super(key)
8
- if /\Aenv\[([^\]]+)\]\z/ =~ val
8
+ if val.is_a?(String) and /\Aenv\[([^\]]+)\]\z/ =~ val
9
9
  ENV[$1]
10
10
  else
11
11
  val
@@ -1,5 +1,5 @@
1
1
  module Itamae
2
2
  module NodeEnv
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-node_env
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
  - nownabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-28 00:00:00.000000000 Z
11
+ date: 2014-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae