itamae 1.9.1 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/itamae/backend.rb +8 -1
- data/lib/itamae/resource/gem_package.rb +2 -2
- data/lib/itamae/resource/git.rb +1 -1
- data/lib/itamae/resource/link.rb +1 -1
- data/lib/itamae/version.txt +1 -1
- data/spec/integration/default_spec.rb +4 -0
- data/spec/integration/recipes/default.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba7c43e3ad6a6bfafe1bc42c97b72e9869218f10
|
4
|
+
data.tar.gz: 6d4c623011615e7bf8220876642479cbddc94fc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba8d6b72cd15260fc2e0b4b53d8a9774e9a7baa1352cc5ef3aafdfc3be0224848873cafd846c0e44d2650e6aeb6b6a5ae0906f4eb5b92c6251d89669f11137d8
|
7
|
+
data.tar.gz: f5925dbc882fb1e6b1f654a51ddf7cc77059725bb678404ad11cb522fffcba317d1c09092007102c8f8787d5437749cc019b4eaa725f7ea1f6ffc953c8a21004
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
## v1.9.2
|
2
|
+
|
3
|
+
Features
|
4
|
+
|
5
|
+
- [New option: `options` for `gem_package` resource (by @hico-horiuchi)](https://github.com/itamae-kitchen/itamae/pull/186)
|
6
|
+
|
7
|
+
Improvements
|
8
|
+
|
9
|
+
- [Execute `vagrant ssh-config` under `Bundler.with_clean_env` (by @hfm)](https://github.com/itamae-kitchen/itamae/pull/188)
|
10
|
+
- [Specify type of `recursive` option for `git` resource and `force` option for `link` resource (by @k0kubun)](https://github.com/itamae-kitchen/itamae/pull/189)
|
11
|
+
|
1
12
|
## v1.9.1
|
2
13
|
|
3
14
|
Features
|
data/lib/itamae/backend.rb
CHANGED
@@ -238,7 +238,14 @@ module Itamae
|
|
238
238
|
if @options[:vagrant]
|
239
239
|
config = Tempfile.new('', Dir.tmpdir)
|
240
240
|
hostname = opts[:host_name] || 'default'
|
241
|
-
|
241
|
+
vagrant_cmd = "vagrant ssh-config #{hostname} > #{config.path}"
|
242
|
+
if defined?(Bundler)
|
243
|
+
Bundler.with_clean_env do
|
244
|
+
`#{vagrant_cmd}`
|
245
|
+
end
|
246
|
+
else
|
247
|
+
`#{vagrant_cmd}`
|
248
|
+
end
|
242
249
|
opts.merge!(Net::SSH::Config.for(hostname, [config.path]))
|
243
250
|
end
|
244
251
|
|
@@ -6,6 +6,7 @@ module Itamae
|
|
6
6
|
define_attribute :action, default: :install
|
7
7
|
define_attribute :package_name, type: String, default_name: true
|
8
8
|
define_attribute :gem_binary, type: [String, Array], default: 'gem'
|
9
|
+
define_attribute :options, type: [String, Array], default: []
|
9
10
|
define_attribute :version, type: String
|
10
11
|
define_attribute :source, type: String
|
11
12
|
|
@@ -64,7 +65,7 @@ module Itamae
|
|
64
65
|
end
|
65
66
|
|
66
67
|
def install!
|
67
|
-
cmd = [*Array(attributes.gem_binary), 'install']
|
68
|
+
cmd = [*Array(attributes.gem_binary), 'install', *Array(attributes.options)]
|
68
69
|
if attributes.version
|
69
70
|
cmd << '-v' << attributes.version
|
70
71
|
end
|
@@ -78,4 +79,3 @@ module Itamae
|
|
78
79
|
end
|
79
80
|
end
|
80
81
|
end
|
81
|
-
|
data/lib/itamae/resource/git.rb
CHANGED
@@ -9,7 +9,7 @@ module Itamae
|
|
9
9
|
define_attribute :destination, type: String, default_name: true
|
10
10
|
define_attribute :repository, type: String, required: true
|
11
11
|
define_attribute :revision, type: String
|
12
|
-
define_attribute :recursive, default: false
|
12
|
+
define_attribute :recursive, type: [TrueClass, FalseClass], default: false
|
13
13
|
|
14
14
|
def pre_action
|
15
15
|
case @current_action
|
data/lib/itamae/resource/link.rb
CHANGED
@@ -6,7 +6,7 @@ module Itamae
|
|
6
6
|
define_attribute :action, default: :create
|
7
7
|
define_attribute :link, type: String, default_name: true
|
8
8
|
define_attribute :to, type: String, required: true
|
9
|
-
define_attribute :force, default: false
|
9
|
+
define_attribute :force, type: [TrueClass, FalseClass], default: false
|
10
10
|
|
11
11
|
def pre_action
|
12
12
|
case @current_action
|
data/lib/itamae/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.
|
1
|
+
1.9.2
|
@@ -171,6 +171,10 @@ describe command('gem list') do
|
|
171
171
|
its(:stdout) { should include('tzinfo (1.2.2, 1.1.0)') }
|
172
172
|
end
|
173
173
|
|
174
|
+
describe command('ri Bundler') do
|
175
|
+
its(:stderr) { should eq("Nothing known about Bundler\n") }
|
176
|
+
end
|
177
|
+
|
174
178
|
describe file('/tmp/created_by_definition') do
|
175
179
|
it { should be_file }
|
176
180
|
its(:content) { should eq("name:name,key:value,message:Hello, Itamae\n") }
|
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.9.
|
4
|
+
version: 1.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryota Arai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -313,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
313
313
|
version: '0'
|
314
314
|
requirements: []
|
315
315
|
rubyforge_project:
|
316
|
-
rubygems_version: 2.
|
316
|
+
rubygems_version: 2.5.1
|
317
317
|
signing_key:
|
318
318
|
specification_version: 4
|
319
319
|
summary: Simple Configuration Management Tool
|