itamae 1.9.1 → 1.9.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1922ba87b574d058801766b1b549a9a26e9b9b20
4
- data.tar.gz: ddf59e714b58036d98cc1e11510adb54e41fb6eb
3
+ metadata.gz: ba7c43e3ad6a6bfafe1bc42c97b72e9869218f10
4
+ data.tar.gz: 6d4c623011615e7bf8220876642479cbddc94fc6
5
5
  SHA512:
6
- metadata.gz: 7d44161aadb0e9a388e14668fbedb08ef4bf3e585f95347e529751a2b6a98f6949c1f41c2d940c485b8db95df0bcb50504d8b7f43c3ba1b00c8ee6e2141761dd
7
- data.tar.gz: bde120804a97c6109a37ceece9667d17214c1f1cb155b69938ded9c43b5be181e5932c0e548bc9c7429d98b008d70cd52ff756a571e49a8360a2d7e9425658e6
6
+ metadata.gz: ba8d6b72cd15260fc2e0b4b53d8a9774e9a7baa1352cc5ef3aafdfc3be0224848873cafd846c0e44d2650e6aeb6b6a5ae0906f4eb5b92c6251d89669f11137d8
7
+ data.tar.gz: f5925dbc882fb1e6b1f654a51ddf7cc77059725bb678404ad11cb522fffcba317d1c09092007102c8f8787d5437749cc019b4eaa725f7ea1f6ffc953c8a21004
@@ -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
@@ -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
- `vagrant ssh-config #{hostname} > #{config.path}`
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
-
@@ -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
@@ -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
@@ -1 +1 @@
1
- 1.9.1
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") }
@@ -65,6 +65,10 @@ gem_package 'tzinfo' do
65
65
  version '1.2.2'
66
66
  end
67
67
 
68
+ gem_package 'bundler' do
69
+ options ['--no-ri', '--no-rdoc']
70
+ end
71
+
68
72
  ######
69
73
 
70
74
  execute "echo -n > /tmp/notifies"
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.1
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-20 00:00:00.000000000 Z
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.4.5.1
316
+ rubygems_version: 2.5.1
317
317
  signing_key:
318
318
  specification_version: 4
319
319
  summary: Simple Configuration Management Tool