itamae-plugin-recipe-homebrew 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -6
- data/lib/itamae/plugin/recipe/homebrew/package.rb +3 -2
- data/lib/itamae/plugin/recipe/homebrew/version.rb +1 -1
- 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: 7f77034ed2ba1c990babf4b777861b290109bd12
|
4
|
+
data.tar.gz: 9b56857159198362c30bfb408805b7f5381fac8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ad1b3c6dec776ab7dd55ac91ed6e75d8e50b1b212ba8b2f74d4bd4bee6e555c9ac02a72947c9c49d556c884b825344984f92105dd932f0d47ea3a1d498a8067
|
7
|
+
data.tar.gz: 8fcc8f71524b1540df51bf1f5e8cd84848c513ce86eb7d27531aee54de90b620c2979e74e98d57360453dccf3544fa2ae7811b78d1e0468ed35357a327ad5858
|
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# itamae-plugin-recipe-homebrew
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/itamae-plugin-recipe-homebrew.svg)](http://badge.fury.io/rb/itamae-plugin-recipe-homebrew)
|
2
3
|
|
3
4
|
Plugin to support the HomeBrew for [Itamae](https://github.com/itamae-kitchen/itamae)
|
4
5
|
|
6
|
+
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
Add this line to your application's Gemfile:
|
@@ -88,15 +90,15 @@ brew:
|
|
88
90
|
- bettertouchtool
|
89
91
|
```
|
90
92
|
##### Description of Option
|
91
|
-
* **
|
92
|
-
* **
|
93
|
-
* **
|
94
|
-
* **
|
95
|
-
* **
|
93
|
+
* **enable_update** : run the `brew update` If true
|
94
|
+
* **enable_upgrade** : run the `brew upgrade` If true
|
95
|
+
* **add_repositories** : run the `brew tap XXXXX`. To specify the repositories you want to add an array
|
96
|
+
* **install_packages** : run the `brew install XXXXX`. To specify the packages you want to add an array
|
97
|
+
* **install_apps** : run the `brew cask instal`. To specify the applications you want to add an array
|
96
98
|
|
97
99
|
## Contributing
|
98
100
|
|
99
|
-
1. Fork it ( https://github.com/
|
101
|
+
1. Fork it ( https://github.com/fukuiretu/itamae-plugin-recipe-homebrew/fork )
|
100
102
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
101
103
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
102
104
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -2,8 +2,9 @@ include_recipe 'common.rb'
|
|
2
2
|
|
3
3
|
# Install bin packages
|
4
4
|
node['brew']['install_packages'].each do |package|
|
5
|
-
|
5
|
+
package_without_options = package.split(/[ \/]/).last
|
6
|
+
execute "Install package: #{package_without_options}" do
|
6
7
|
command "brew install #{package}"
|
7
|
-
not_if "brew list | grep -q #{
|
8
|
+
not_if "brew list | grep -q '#{package_without_options}$'"
|
8
9
|
end
|
9
10
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-plugin-recipe-homebrew
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fukuiretu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.4.
|
78
|
+
rubygems_version: 2.4.8
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Plugin to support the HomeBrew for Itamae
|