itamae 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/itamae/cli.rb +1 -0
- data/lib/itamae/runner.rb +7 -0
- data/lib/itamae/version.txt +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d744f87d8c690a45e686eab053ee14d531f899c
|
4
|
+
data.tar.gz: d83dbf89f66aea4f9e2969a02e7a95968ecb77ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31ad29cdbc9a78b18f5d1de657642e0ee9fc3989f5e678fbc981b63c4916cac18f69d658e85567e8a65be07bd40eccd439795e66adb23c63819f09d6f5de25ba
|
7
|
+
data.tar.gz: 5b872461815f0d384fdb61df4c3389e0da9ec324249126b4e8ed97d27a75ae185c14563a4f6a60d68259a24bc9c286c58d5e898b8975efbf4fac2db09e29a8bd
|
data/lib/itamae/cli.rb
CHANGED
@@ -34,6 +34,7 @@ module Itamae
|
|
34
34
|
option :port, type: :numeric, aliases: ['-p']
|
35
35
|
option :ohai, type: :boolean, default: false
|
36
36
|
option :vagrant, type: :boolean, default: false
|
37
|
+
option :ask_password, type: :boolean, default: false
|
37
38
|
def ssh(*recipe_files)
|
38
39
|
if recipe_files.empty?
|
39
40
|
raise "Please specify recipe files."
|
data/lib/itamae/runner.rb
CHANGED
@@ -61,6 +61,13 @@ module Itamae
|
|
61
61
|
opts.merge!(Net::SSH::Config.for(opts[:host], [config.path]))
|
62
62
|
opts[:host] = opts.delete(:host_name)
|
63
63
|
end
|
64
|
+
|
65
|
+
if options[:ask_password]
|
66
|
+
print "password: "
|
67
|
+
password = STDIN.noecho(&:gets).strip
|
68
|
+
print "\n"
|
69
|
+
opts.merge!(password: password)
|
70
|
+
end
|
64
71
|
end
|
65
72
|
|
66
73
|
Backend.instance.set_type(type, opts)
|
data/lib/itamae/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryota Arai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|