itamae-plugin-resource-cask 0.2.1 → 0.2.2

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: 2d76b9f9a04dfc2df27c641876731d30cefd9fca
4
- data.tar.gz: d4d4315679f0f40c6d409d8a140943552ba2ec25
3
+ metadata.gz: 34ad743403f15fabbcac804c3e4315b09adea9ec
4
+ data.tar.gz: 8233322e384bb6360d070b83e1db7f66768317e9
5
5
  SHA512:
6
- metadata.gz: 55f6ec36dc52c308845d3e9f0ba9837f629331f1254889c9dd2d1d1a4bde866deb816012b9f7062876240b148a7835337f0e201a15e29c087f3118ef1c7cbf6f
7
- data.tar.gz: b3c756524d4ed5de154a54e749a9c7a0b8d6eef6a930b4943d78fdad860d1f1c91956ef070fe435db07f355269a4d3970702d67244e06b77ea40c73f9e6bd109
6
+ metadata.gz: b20a2c628dd82acd05c332fad2e973ff421b8f25e707dfcf0267c08167a90368f8c5dca8410c03e8f90d1c2052bc788d2ec7b34c5f4174a0161b7dea63487ebb
7
+ data.tar.gz: 13611b02d94f92889eae9275c7810a2a830a04c688e55612a2a5d78441163f2a7e679df4fb9e14174ae883efdf4b5dddd64424fd2f34a1855bc749da99c23e7c
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "itamae-plugin-resource-cask"
7
- spec.version = "0.2.1"
7
+ spec.version = "0.2.2"
8
8
  spec.authors = ["Takashi Kokubun"]
9
9
  spec.email = ["takashikkbn@gmail.com"]
10
10
  spec.summary = %q{Itamae resource plugin to manage homebrew cask packages.}
@@ -6,7 +6,7 @@ module Itamae
6
6
  class Cask < Itamae::Resource::Base
7
7
  define_attribute :action, default: :install
8
8
  define_attribute :target, type: String, default_name: true
9
- define_attribute :options, type: String, default: "--appdir=/Applications"
9
+ define_attribute :options, type: [String, Array], default: "--appdir=/Applications"
10
10
 
11
11
  def set_current_attributes
12
12
  super
@@ -18,12 +18,12 @@ module Itamae
18
18
 
19
19
  def action_install(options)
20
20
  unless current.exist
21
- run_command(["brew", "cask", "install", attributes.target])
21
+ run_command(["brew", "cask", "install", *Array(attributes.options), attributes.target])
22
22
  end
23
23
  end
24
24
 
25
25
  def action_alfred(options)
26
- run_command(["brew", "cask", "alfred", attributes.target])
26
+ run_command(["brew", "cask", "alfred", *Array(attributes.options), attributes.target])
27
27
  end
28
28
 
29
29
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-resource-cask
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.5.1
89
+ rubygems_version: 2.4.5.1
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Itamae resource plugin to manage homebrew cask packages.