itamae 1.0.5 → 1.0.6

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: 27ee3c6aa5cc4c867b882bbdd3dbb118d6a7d92f
4
- data.tar.gz: 13e22fd12cbcd34a0429596879fec91d34484c95
3
+ metadata.gz: a62a3a6902c9fdcee22c271fb72dfc2bebdd4752
4
+ data.tar.gz: b2e9d67a744af86ffb6004e74b02fb4c27448f99
5
5
  SHA512:
6
- metadata.gz: 8b66f24230d10e0cbee1fddf02724ed05c9fab57029014d19da914f905760470c90f8225416f12a4486338fbe7ccacc6913f111cab28f4cb560f60e4e01bf64b
7
- data.tar.gz: 0fa720b828afab191658b32cc3714be9a8023cbbc54719f321c87f7e69e69bc7ef84808cab6805efbf4c3325fc22879d3cf896b841a8bd03273b1114a730fa3f
6
+ metadata.gz: 80a3e37309e028dcb92e9ebc7a87736f0bc56a0c302c7ca6ca9db16c4bfde47a4a46e1654adeef4021c72b565891f072136348572404e413c4bd131913da54e4
7
+ data.tar.gz: 5abcfa58509cf98542bd70e74d06a833cc50d961485a1ba55d5ac4cd6dc2c1bbd5fbd7abb934179e99cdd7620fdf0564b0b64ec0446f9cda4c99204fde9066c0
@@ -33,6 +33,7 @@ module Itamae
33
33
  when :ssh
34
34
  Specinfra.configuration.request_pty = true
35
35
  Specinfra.configuration.host = options.delete(:host)
36
+ Specinfra.configuration.disable_sudo = options.delete(:disable_sudo)
36
37
  Specinfra.configuration.ssh_options = options
37
38
 
38
39
  Specinfra.configuration.backend = :ssh
data/lib/itamae/cli.rb CHANGED
@@ -35,6 +35,7 @@ module Itamae
35
35
  option :ohai, type: :boolean, default: false
36
36
  option :vagrant, type: :boolean, default: false
37
37
  option :ask_password, type: :boolean, default: false
38
+ option :sudo, type: :boolean, default: true
38
39
  def ssh(*recipe_files)
39
40
  if recipe_files.empty?
40
41
  raise "Please specify recipe files."
data/lib/itamae/runner.rb CHANGED
@@ -49,6 +49,7 @@ module Itamae
49
49
  opts[:user] = options[:user] || Etc.getlogin
50
50
  opts[:keys] = [options[:key]] if options[:key]
51
51
  opts[:port] = options[:port] if options[:port]
52
+ opts[:disable_sudo] = true unless options[:sudo]
52
53
 
53
54
  if options[:vagrant]
54
55
  config = Tempfile.new('', Dir.tmpdir)
@@ -1 +1 @@
1
- 1.0.5
1
+ 1.0.6
data/wercker.yml CHANGED
@@ -7,7 +7,7 @@ build:
7
7
  steps:
8
8
  # Uncomment this to force RVM to use a specific Ruby version
9
9
  - rvm-use:
10
- version: 2.1.1
10
+ version: 2.1.4
11
11
 
12
12
  - script:
13
13
  name: update bundler
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.5
4
+ version: 1.0.6
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-30 00:00:00.000000000 Z
11
+ date: 2014-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor