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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38ec2d769e7fac76fd8646eb8d62fc6d64500eb2
4
- data.tar.gz: a833728366b5a2f0399c14df4ea01d9262c00831
3
+ metadata.gz: 3d744f87d8c690a45e686eab053ee14d531f899c
4
+ data.tar.gz: d83dbf89f66aea4f9e2969a02e7a95968ecb77ed
5
5
  SHA512:
6
- metadata.gz: b777ef830842bcbdcf2daf43f0e198e8f6cc95d17d9c3d3fb03e5169d56d0a7b42ab86c0ba5d318ed1dc4b861732f2ede1d7a5b1bb19301b9468e84cda8b08fa
7
- data.tar.gz: a6a8b110cb8f231cd7db86bd99218ff9d04b91acc0aaad0a890c9828de280c573e077e84defd6b0e2f6c96b78099bbeec5c30419f4807ab4a8066335921d472f
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)
@@ -1 +1 @@
1
- 1.0.3
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.3
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-19 00:00:00.000000000 Z
11
+ date: 2014-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor