itamae 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/itamae/backend.rb +1 -0
- data/lib/itamae/cli.rb +1 -0
- data/lib/itamae/runner.rb +1 -0
- data/lib/itamae/version.txt +1 -1
- data/wercker.yml +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: a62a3a6902c9fdcee22c271fb72dfc2bebdd4752
|
4
|
+
data.tar.gz: b2e9d67a744af86ffb6004e74b02fb4c27448f99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80a3e37309e028dcb92e9ebc7a87736f0bc56a0c302c7ca6ca9db16c4bfde47a4a46e1654adeef4021c72b565891f072136348572404e413c4bd131913da54e4
|
7
|
+
data.tar.gz: 5abcfa58509cf98542bd70e74d06a833cc50d961485a1ba55d5ac4cd6dc2c1bbd5fbd7abb934179e99cdd7620fdf0564b0b64ec0446f9cda4c99204fde9066c0
|
data/lib/itamae/backend.rb
CHANGED
@@ -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)
|
data/lib/itamae/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.6
|
data/wercker.yml
CHANGED
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.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-
|
11
|
+
date: 2014-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|