toque 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Capfile +1 -1
- data/README.md +17 -0
- data/lib/toque/chef.rb +2 -1
- data/lib/toque/version.rb +1 -1
- data/toque.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 448b10e7713de07a35d214f3ed5693cebb4f94ac
|
4
|
+
data.tar.gz: e15016d9d28df39fc514d3c39409d3f1a2ef36e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7218962dbf656cc07ecf4b85187ba59711800234cb9c9f5d2a55b3990e2447ce4c008b9bbf5372c7de1c7f37fd980842de3e25370fa8535d369c708dda0a4f8
|
7
|
+
data.tar.gz: 12abda9ee2c118d09b04ba1e76e000e0a12f999aa4a80a6caaac287e688ff1e17237e4c0bc9dc22cde5591563b716b402a8e74089292a42d298a309a6d656802
|
data/Capfile
CHANGED
data/README.md
CHANGED
@@ -64,9 +64,11 @@ end
|
|
64
64
|
After deploying your app you may need to create a config for your application
|
65
65
|
like `database.yml` or redis configuration:
|
66
66
|
|
67
|
+
```ruby
|
67
68
|
after "deploy:create_symlink" do
|
68
69
|
toque.run_list 'recipe[awesome::configure]'
|
69
70
|
end
|
71
|
+
```
|
70
72
|
|
71
73
|
## Configuration
|
72
74
|
|
@@ -88,6 +90,21 @@ template File.join(node[:deploy_to], 'config', 'database.yml') do
|
|
88
90
|
end
|
89
91
|
```
|
90
92
|
|
93
|
+
### Available options
|
94
|
+
|
95
|
+
```bash
|
96
|
+
$ bundle exec cap toque:config
|
97
|
+
* 2013-04-07 21:35:46 executing `toque:config'
|
98
|
+
set :chef_debug, false
|
99
|
+
set :chef_omnibus_installer_url, "http://www.opscode.com/chef/install.sh"
|
100
|
+
set :chef_solo, "/opt/chef/bin/chef-solo"
|
101
|
+
set :chef_version, :latest
|
102
|
+
set :cookbooks_paths, ["config/cookbooks", "vendor/cookbooks"]
|
103
|
+
set :databags_path, "config/databags"
|
104
|
+
set :toque_pwd, "/tmp/toque"
|
105
|
+
|
106
|
+
```
|
107
|
+
|
91
108
|
## Thanks
|
92
109
|
|
93
110
|
Thanks to [roundsman](https://github.com/iain/roundsman) doing even some more
|
data/lib/toque/chef.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'tempfile'
|
2
|
+
require 'multi_json'
|
2
3
|
|
3
4
|
module Toque
|
4
5
|
|
@@ -118,7 +119,7 @@ module Toque
|
|
118
119
|
|
119
120
|
attrs = variables.dup
|
120
121
|
attrs[:run_list] = recipes
|
121
|
-
put attrs
|
122
|
+
put MultiJson.dump(attrs), pwd("node.json"), :via => :scp
|
122
123
|
end
|
123
124
|
end
|
124
125
|
|
data/lib/toque/version.rb
CHANGED
data/toque.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toque
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: multi_json
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
description: 'Toque: Cap of a Chef. Integrate Chef into Capistrano.'
|
28
42
|
email:
|
29
43
|
- jg@altimos.de
|