serverkit 0.6.8 → 0.6.9

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: 7e96ebf64ac2b5104e16282e75a830dbc6f4500f
4
- data.tar.gz: b637cf2b5368c9faf62adf976f8f25e9472732bb
3
+ metadata.gz: b16828f0b794222ed550bb3b10f7fd979aa7188c
4
+ data.tar.gz: e1158d5a49d5ceabe44584cdde1888e471bcc1f0
5
5
  SHA512:
6
- metadata.gz: 24ac3289ad2a8f277f57961bcb3cf1fea7b988c31bc971f072b8985858227002f41df2de66953e0f10adad7c8d5f4ce49dbd027109e6b4a283be2790e3327bc5
7
- data.tar.gz: 14d6705e4836fb90a5967275eda8d3b08ee6736a46b09d1bc512bdda5aff16d3f38944d15b44130c46b1fa0322f8bfe1f418b811d05b1f5afa89164738581f90
6
+ metadata.gz: e7657a6587fbaf0fb9fb6a178e4918b73beec12447bfea3fc5b801b8c3fd225b304759396afa524753a6a7e7e651ed6d0ac5048ff005e8fa888fb0abfc1b4716
7
+ data.tar.gz: b5e63eaff08bf79fa6327c7804c9c4f532f6b5539120a01a3c5c849777bf6e720738d40430e4d46b5ce4f988b66feeb82da26a0db3a8f8f9045a2683deb7104d
@@ -1,3 +1,6 @@
1
+ ## 0.6.9
2
+ - Support --ssh-identity and --ssh-user options
3
+
1
4
  ## 0.6.8
2
5
  - Restrict ActiveSupport version in < 5.0.0
3
6
 
@@ -74,6 +74,7 @@ module Serverkit
74
74
  log_level: log_level,
75
75
  recipe_path: recipe_path,
76
76
  variables_path: variables_path,
77
+ ssh_options: ssh_options,
77
78
  }.reject do |key, value|
78
79
  value.nil?
79
80
  end
@@ -97,6 +98,8 @@ module Serverkit
97
98
  on "--log-level=", "Log level (DEBUG, INFO, WARN, ERROR, FATAL)"
98
99
  on "--no-color", "Disable coloring"
99
100
  on "--variables=", "Path to variables file for ERB recipe"
101
+ on "--ssh-user=", "SSH user name"
102
+ on "--ssh-identity=", "SSH identity (private key) file path"
100
103
  end
101
104
  end
102
105
 
@@ -126,5 +129,16 @@ module Serverkit
126
129
  def variables_path
127
130
  command_line_options["variables"]
128
131
  end
132
+
133
+ def ssh_options
134
+ identity = command_line_options["ssh-identity"]
135
+ keys = identity ? [identity] : nil
136
+ {
137
+ user: command_line_options["ssh-user"],
138
+ keys: keys,
139
+ }.reject do |key, value|
140
+ value.nil?
141
+ end
142
+ end
129
143
  end
130
144
  end
@@ -1,3 +1,3 @@
1
1
  module Serverkit
2
- VERSION = "0.6.8"
2
+ VERSION = "0.6.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-08 00:00:00.000000000 Z
11
+ date: 2017-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -312,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
312
312
  version: '0'
313
313
  requirements: []
314
314
  rubyforge_project:
315
- rubygems_version: 2.4.5.1
315
+ rubygems_version: 2.5.2
316
316
  signing_key:
317
317
  specification_version: 4
318
318
  summary: Assemble servers from your recipe.