kibou 0.2.0 → 0.2.1
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.
- data/README.md +14 -3
- data/lib/kibou/package.rb +4 -4
- data/lib/kibou/version.rb +1 -1
- metadata +2 -4
- data/Gemfile.lock +0 -18
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Kibou 希望 (Hope)
|
2
2
|
=============
|
3
3
|
|
4
|
-
Homebrew and
|
4
|
+
Homebrew and Rake are OSX's best friends.
|
5
5
|
|
6
6
|
## Features
|
7
7
|
|
@@ -43,10 +43,21 @@ Kibou is using [Homebrew](http://mxcl.github.com/homebrew/) and [Rake](https://g
|
|
43
43
|
|
44
44
|
# recipes/tools.rb
|
45
45
|
class Tools < Kibou::Recipe
|
46
|
+
|
46
47
|
package :tmux, :ensure => :latest
|
47
48
|
package :wemux, :via => "https://github.com/downloads/zolrath/wemux/wemux.rb"
|
49
|
+
|
50
|
+
package :vim do
|
51
|
+
run 'brew install vim'
|
52
|
+
end
|
53
|
+
|
54
|
+
before :greeting
|
48
55
|
|
49
|
-
|
56
|
+
after :test_tmux
|
57
|
+
|
58
|
+
def greeting
|
59
|
+
run 'echo hello world'
|
60
|
+
end
|
50
61
|
|
51
62
|
def test_tmux
|
52
63
|
status = system("which tmux")
|
@@ -71,7 +82,7 @@ Run `rake kibou` to perform package installations via Homebrew.
|
|
71
82
|
|
72
83
|
### Kibou::RakeTask
|
73
84
|
|
74
|
-
* **
|
85
|
+
* **configuration**
|
75
86
|
|
76
87
|
* `recipes_directory` - specify the directory name of recipe files in a regex pattern (default: `recipes/*.rb`)
|
77
88
|
* `recipes`- a list of recipe names (Array is preferred)
|
data/lib/kibou/package.rb
CHANGED
@@ -20,12 +20,12 @@ module Kibou
|
|
20
20
|
return install unless package_installed?(name)
|
21
21
|
outdated? ? upgrade : up_to_date_message
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
def completed?
|
25
25
|
!!@completed
|
26
26
|
end
|
27
27
|
|
28
|
-
private
|
28
|
+
private
|
29
29
|
|
30
30
|
def up_to_date_message
|
31
31
|
puts " --> #{name} is up to date"
|
@@ -37,11 +37,11 @@ module Kibou
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def outdated?
|
40
|
-
options[:ensure].to_s == 'latest' and package_outdated?(name)
|
40
|
+
options[:ensure].to_s == 'latest' and package_outdated?(name)
|
41
41
|
end
|
42
42
|
|
43
43
|
def invoke_proc
|
44
|
-
puts " -->
|
44
|
+
puts " --> executing package: #{name}"
|
45
45
|
raise "Unable to invoke proc for #{name}" unless options[:proc].present? ? options[:proc].call : false
|
46
46
|
completed!
|
47
47
|
end
|
data/lib/kibou/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kibou
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -50,7 +50,6 @@ extensions: []
|
|
50
50
|
extra_rdoc_files: []
|
51
51
|
files:
|
52
52
|
- Gemfile
|
53
|
-
- Gemfile.lock
|
54
53
|
- kibou.gemspec
|
55
54
|
- lib/kibou/dependency.rb
|
56
55
|
- lib/kibou/package.rb
|
@@ -90,4 +89,3 @@ signing_key:
|
|
90
89
|
specification_version: 3
|
91
90
|
summary: Homebrew and Rakefile are OSX's best friends.
|
92
91
|
test_files: []
|
93
|
-
has_rdoc:
|