itamae-mitsurin 0.37 → 0.38

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: 206e8e02f0c1abe203c621d52f3d19b993bf3a17
4
- data.tar.gz: bb815af99965c1ec0b021a49a05d7f34b0a8522c
3
+ metadata.gz: ce77231150b75053ae849ce8b2148f9061a2bc54
4
+ data.tar.gz: cf6a95dbb7ecb252c819cbb430b82ae9822a6aa4
5
5
  SHA512:
6
- metadata.gz: f0836c7590e9a1e9bbac176ba62b1f2030bb15bbca55573d4b19c52b363aed276763e243cdd1126c45914d433c44e547823c6ecc1a33c0299ae74024e0c571af
7
- data.tar.gz: e943105dc489f04eb9058815bf3cb1fd713c08e926b5cfe6dce14c55842c33e073f3b8ee702cc4fb2f1c3a8f04af45ecb1b109a8483824c27a07702cd1140fd4
6
+ metadata.gz: 8e3eb8316e71c408cba05e1a00de93644c300f3ebbfe76a4b298f17cae9188a1b14c0d2418e89b994d8971270100d5aa11a5c6ded49bd66daf1fce7c01f39076
7
+ data.tar.gz: 41e23113264b22587ba7cd045fcc9a8f12423f4d02868eff1c55a988667ac14d90f154421815f40fe61ad5f4193a0b995f6814732c2b881b20e3b41c65a2ddfe
@@ -105,6 +105,7 @@ module ItamaeMitsurin
105
105
  sudo_password = node_property[:environments][:sudo_password]
106
106
  ssh_port = node_property[:environments][:ssh_port]
107
107
  ssh_key = node_property[:environments][:ssh_key]
108
+ local_ipv4 = node_property[:environments][:local_ipv4]
108
109
 
109
110
  ENV['TARGET_HOST'] = node
110
111
  ENV['NODE_FILE'] = node_file
@@ -112,7 +113,11 @@ module ItamaeMitsurin
112
113
  ENV['SUDO_PASSWORD'] = sudo_password
113
114
 
114
115
  command = "bundle exec itamae ssh"
115
- command << " -h #{node}"
116
+ if local_ipv4.nil?
117
+ command << " -h #{node}"
118
+ else
119
+ command << " -h #{local_ipv4}"
120
+ end
116
121
  command << " -u #{ssh_user}"
117
122
  command << " -p #{ssh_port}"
118
123
  command << " -i keys/#{ssh_key}" unless ssh_key.nil?
@@ -1 +1 @@
1
- 0.37
1
+ 0.38
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-mitsurin
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.37'
4
+ version: '0.38'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akihiro Kamiyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-02 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor