flombe 0.1.0.9 → 0.1.0.10

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.
@@ -0,0 +1,6 @@
1
+ #
2
+ # Cookbook Name:: mongodb
3
+ # Recipe:: default
4
+ #
5
+
6
+ homebrew 'mongodb'
@@ -0,0 +1,23 @@
1
+ #
2
+ # Cookbook Name:: mongodb
3
+ # Recipe:: plist
4
+ #
5
+
6
+ Chef::Log.info("Configuring mongodb to automatically start on login")
7
+
8
+ destination_plist = "#{ENV['HOME']}/Library/LaunchAgents/org.mongodb.mongod.plist"
9
+ plist_path = "$(brew --prefix mongodb)/org.mongodb.mongod.plist"
10
+
11
+ execute "unloading existing plist" do
12
+ command "launchctl unload -w -F #{destination_plist}"
13
+ only_if "test -f #{destination_plist}"
14
+ end
15
+
16
+ execute "adding plist to login" do
17
+ command <<-EOS
18
+ mkdir -p #{ENV['HOME']}/Library/LaunchAgents
19
+ cp -f #{plist_path} #{destination_plist}
20
+ chmod 0644 #{destination_plist}
21
+ launchctl load -w -F #{destination_plist}
22
+ EOS
23
+ end
data/lib/flombe.rb CHANGED
@@ -5,7 +5,7 @@ require "tmpdir"
5
5
  require "json"
6
6
 
7
7
  module Flombe
8
- VERSION = "0.1.0.9"
8
+ VERSION = "0.1.0.10"
9
9
 
10
10
  autoload :Dsl, 'flombe/dsl'
11
11
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: flombe
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0.9
5
+ version: 0.1.0.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - Stephen Craton
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-03 00:00:00 +08:00
13
+ date: 2011-06-08 00:00:00 +08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -60,6 +60,8 @@ files:
60
60
  - cookbooks/homebrew/providers/homebrew.rb
61
61
  - cookbooks/homebrew/recipes/default.rb
62
62
  - cookbooks/homebrew/resources/homebrew.rb
63
+ - cookbooks/mongodb/recipes/default.rb
64
+ - cookbooks/mongodb/recipes/plist.rb
63
65
  - cookbooks/mysql/README.rdoc
64
66
  - cookbooks/mysql/metadata.rb
65
67
  - cookbooks/mysql/recipes/default.rb
@@ -140,9 +142,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
142
  requirements:
141
143
  - - ">="
142
144
  - !ruby/object:Gem::Version
143
- hash: 2117953464141157274
144
- segments:
145
- - 0
146
145
  version: "0"
147
146
  required_rubygems_version: !ruby/object:Gem::Requirement
148
147
  none: false